new AMR distance function

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2022-08-30 21:48:02 +02:00
1 parent fbd5d32541
commit 3fca703fbf
10 files changed
+343 -6

No files matched your search

+12
View File
@@ -84,3 +84,15 @@ vec_ptype2.disk.integer <- function(x, y, ...) {
vec_cast.integer.disk <- function(x, to, ...) {
unclass(x)
}
# S3: mic
vec_cast.character.mic <- function(x, to, ...) {
as.character(x)
}
vec_cast.double.mic <- function(x, to, ...) {
# this calls as.double.mic()
as.double(x)
}
vec_math.mic <- function(.fn, x, ...) {
.fn(as.double(x), ...)
}