simplify.folded: Simplify Folded

Description Usage Arguments Value See Also Examples

View source: R/meta.R

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

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

Related to simplify.folded in fold...