Description Usage Arguments Value Examples
View source: R/get_var_values.R
Get vector of variable values
1 | get_var_values(x, data)
|
x |
Either a name (string) or a positive integer which indicates
position of variable in |
data |
A data frame (or sililar structure). |
If x
is a vector of at least 2 elements,
this vector is returned.
If x
is a string or a number (length 1),
then data[[x]]
is returned.
If x
is NULL
, NULL
is returned.
1 2 3 4 5 6 7 8 | library(manyROC)
dataset <- head(PlantGrowth)
get_var_values(x = "group", data = dataset)
get_var_values(x = c("group", "group"), data = dataset)
get_var_values(x = NULL, data = dataset)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.