Skip to contents

Unclassifies data.frame. Coerces 'classified' items to original values, rebuilding codelist attribute.

Usage

# S3 method for class 'data.frame'
unclassified(x, ...)

Arguments

x

data.frame

...

passed to select to limit scope

Value

data.frame

Examples

library(magrittr)
file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
x <- decorate(file)
x %>% explicit_guide %>% decorations(Age, Race, Heart:glyco)
#> - Age
#>  - label: baseline subject age
#>  - units: year
#> - Race
#>  - label: subject race
#>  - codelist: Caucasian, Latin, Black
#> - Heart
#>  - label: congestive heart failure
#>  - codelist: No/Mild, Moderate, Severe
#> - Creatinine
#>  - label: creatinine clearance
#>  - codelist
#>   - < 50 mg/min: < 50
#>   - '>= 50 mg/min': '>= 50'
#> - glyco
#>  - label: alpha-1 acid glycoprotein concentration
#>  - units: mg/dL
x %>% explicit_guide %>% classified %>% unclassified %>% decorations(Age, Race, Heart:glyco)
#> - Age
#>  - label: baseline subject age
#>  - units: year
#> - Race
#>  - label: subject race
#>  - codelist: Caucasian, Latin, Black
#> - Heart
#>  - label: congestive heart failure
#>  - codelist: No/Mild, Moderate, Severe
#> - Creatinine
#>  - label: creatinine clearance
#>  - codelist
#>   - < 50 mg/min: < 50
#>   - '>= 50 mg/min': '>= 50'
#> - glyco
#>  - label: alpha-1 acid glycoprotein concentration
#>  - units: mg/dL