Unclassifies classified. Uses codelist attribute to restore original values, preserving other attributes (and rebuilding codelist).
Usage
# S3 method for class 'classified'
unclassified(x, ..., persistence = getOption("yamlet_persistence", TRUE))See also
Other classified:
[.classified(),
[<-.classified(),
[[.classified(),
[[<-.classified(),
as.integer.classified(),
c.classified(),
classified(),
classified.classified(),
classified.data.frame(),
classified.default(),
classified.dvec(),
classified.factor(),
codify.default(),
desolve.classified(),
unclassified(),
unclassified.data.frame()
Examples
example(unclassified.data.frame)
#>
#> uncl..> library(magrittr)
#>
#> uncl..> file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
#>
#> uncl..> x <- decorate(file)
#>
#> uncl..> 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
#>
#> uncl..> 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