Folds a grouped_df. Reclassifies as data.frame and passes groups explicitly. Anonymous arguments over-ride stored groups.
# S3 method for grouped_df
fold(x, ..., meta = obj_attr(x), simplify = TRUE,
sort = TRUE, tol = 10)
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.
a list of formulas in the form object ~ attribute. Pass something with length 0 to suppress guessing.
set to NA any groups values that do not help distinguish values, and remove resulting duplicate records
whether to sort the result
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
folded data.frame with columns VARIABLE, META, VALUE and any supplied grouping items.