Closed zachary-foster closed 6 years ago
That seems reasonable to me.
Does taxmap already know how to deal with a standalone vector, e.g., in your first example abovee there's a new vector - is it clear how to map that to the taxa ?
That seems reasonable to me.
Nice
Does taxmap already know how to deal with a standalone vector, e.g., in your first example abovee there's a new vector - is it clear how to map that to the taxa ?
Yea, it knows how to deal with tables, lists, and vectors, although I usually work with tables so lists and vectors are less well debugged.
Curerntly,
mutate_obs
can only add columns to tables. I often want to create a variable for plotting that has per-taxon values, but there is not a per-taxon value table, so I cannot add it withmutate_obs
.If
target
is not present the following could happen:target
. EG:mutate_obs(obj, "my_vector", 1:10)
is the same asobj$data$my_vector <- 1:10
mutate_obs(obj, "my_table", new_col = 1:10)
is the same asobj$data$my_table <- data.frame(new_col = 1:10)
Thoughts @sckott?