powered by
Get variable values from subject/variable name pair
get_var_sequence(data, subj_var, subj, var)
A vector of values from variable var
var
which subj_var equal to subj.
subj_var
subj
A data frame, data frame extension (e.g. a tibble).
tibble
A character string referring to the variable that specifies the "subject" variable.
Any value that the "subject" variable can take.
A character string referring to the variable that contains the variable values.
get_var_sequence(sleep, subj_var = "ID", 1, "extra")
Run the code above in your browser using DataLab