get_var_sequence: Get variable values from subject/variable name pair

View source: R/get_var_array.R

get_var_sequenceR 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")

long2lstmarray documentation built on Nov. 28, 2022, 5:22 p.m.