
Last chance! 50% off unlimited learning
Sale ends in
Given a dataframe containing one or more variables named with a common prefix, this function creates a stacked dataset with one set of observed values of the variables (in order of occurence) per line.
mystack(object, fu.vars, create.idvar = FALSE)
A stacked dataframe
a dataframe containing one or more variables named with a common prefix
a list of the unique prefixes
Do you want to add an ID variable with a common
value given to all records resulting from a given input record?
Default is FALSE
Grant Izmirlian <izmirlian@nih.gov>