get_var_sequence {long2lstmarray}R Documentation

Get variable values from subject/variable name pair

Description

Get variable values from subject/variable name pair

Usage

get_var_sequence(data, subj_var, subj, var)

Arguments

data

A data frame, data frame extension (e.g. a tibble).

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.

Value

A vector of values from variable var which subj_var equal to subj.

Examples

get_var_sequence(sleep, subj_var = "ID", 1, "extra")

[Package long2lstmarray version 0.2.0 Index]