simplify.folded: Simplify Folded

Description Usage Arguments Value See Also Examples

Description

Simplify folded. Per each combination of VARIABLE and META, find the minimum left subset of remaining columns necessary for uniquely distinguishing VALUE, setting other columns to NA. Then drop columns that are completely NA and remove duplicate records.

Usage

1
2
## S3 method for class 'folded'
simplify(x, ...)

Arguments

x

folded

...

passed arguments

Value

folded data.frame

See Also

simplify

Examples

1
2
3
4
5
6
library(magrittr)
library(dplyr)
data(events)
x <- events
x %<>% filter(CMT == 2) %>% select(-EVID,-CMT,-AMT)
x %>% fold(USUBJID,TIME, meta = list(DV ~ BLQ, DV ~ LLOQ), simplify = FALSE) %>% simplify

bergsmat/origami documentation built on May 12, 2019, 3:08 p.m.