fold.grouped_df: Fold grouped_df

Description Usage Arguments Value See Also

View source: R/meta.R

Description

Folds a grouped_df. Reclassifies as data.frame and passes groups explicitly. Anonymous arguments over-ride stored groups.

Usage

1
2
3
## S3 method for class 'grouped_df'
fold(x, ..., meta = obj_attr(x), simplify = TRUE,
  sort = TRUE, tol = 10)

Arguments

x

data.frame

...

unquoted column names whose interaction makes records unique. Included in result but not stacked. groups(x) by default. Named arguments are passed along.

meta

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

simplify

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

sort

whether to sort the result

tol

maximum number of categories for guessing whether to encode metadata; encoding will always be attempted if metadata (attr) or its referent (obj) is a factor

Value

folded data.frame with columns VARIABLE, META, VALUE and any supplied grouping items.

See Also

obj_attr.data.frame fold.grouped_df


fold documentation built on April 23, 2018, 5:03 p.m.

Related to fold.grouped_df in fold...