ChB2-mystack: Stack a dataset

Description Usage Arguments Value Author(s) Examples

Description

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.

Usage

1
  mystack(object, fu.vars, create.idvar = FALSE)

Arguments

object

a dataframe containing one or more variables named with a common prefix

fu.vars

a list of the unique prefixes

create.idvar

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

Value

A stacked dataframe

Author(s)

Grant Izmirlian <izmirlian@nih.gov>

Examples

1
  ## none as yet


Search within the PwrGSD package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.