vector_to_coord.Rd
convert a vector of characters to a vector of numeric coordinates
vector_to_coord(x, scale = NA, range = c(0, 1))
x | a vector of characters, which will be coerced into factor. |
---|---|
scale | a vector of |
range | a vector of 2 numeric values defining a interval, where |
a vector of length(x)
#> [1] 1.000000 3.666667 6.333333 9.000000