1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-09 15:01:51 +02:00

new AMR distance function

This commit is contained in:
2022-08-30 21:48:02 +02:00
parent fbd5d32541
commit 3fca703fbf
10 changed files with 343 additions and 6 deletions

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), ...)
}