fold.data.frame: Fold a Data Frame

Description Usage Arguments Details Value

Description

Folds a data.frame.

Usage

1
2
3
## S3 method for class 'data.frame'
fold(x, group_by = groups(x), meta = obj_attr(x),
  simplify = TRUE, ...)

Arguments

x

object

group_by

a vector of column names serving as key: included in result but not stacked

meta

a list of formulas in the form object ~ attribute. Pass something with length 0 to suppress guessing.

simplify

set to NA any group_by values that do not help distinguish values, and remove resulting duplicate records

...

passed arguments

Details

I.e. convert from wide format to tall format. An attempt will be made to harvest metadata using the header convention object_attribute.

Value

meta data.frame (folded)


bergsmat/meta documentation built on May 12, 2019, 3:06 p.m.