View source: R/get_var_array.R
get_var_sequence | R Documentation |
Get variable values from subject/variable name pair
get_var_sequence(data, subj_var, subj, var)
data |
A data frame, data frame extension (e.g. a |
subj_var |
A character string referring to the variable that specifies the "subject" variable. |
subj |
Any value that the "subject" variable can take. |
var |
A character string referring to the variable that contains the variable values. |
A vector of values from variable var
which subj_var
equal to subj
.
get_var_sequence(sleep, subj_var = "ID", 1, "extra")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.