Skip to contents

Un-resolves explicit usage of default key 'guide' to implicit usage for 'decorated' class. Simply calls drop_title, unclassified, and implicit_guide.

Usage

# S3 method for class 'decorated'
desolve(x, ...)

Arguments

x

decorated

...

passed to drop_title, unclassified, and implicit_guide

Value

decorated

Examples

library(magrittr)
file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
x <- decorate(file)

# this is how Age, glyco, Race look when resolved
x %>% resolve %>% decorations(Age, glyco, Race)
#> - Age
#>  - label: baseline subject age
#>  - units: year
#>  - title: baseline subject age (year)
#> - glyco
#>  - label: alpha-1 acid glycoprotein concentration
#>  - units: mg/dL
#>  - title: alpha-1 acid glycoprotein concentration (mg/dL)
#> - Race
#>  - label: subject race
#>  - codelist: Caucasian, Latin, Black

# we can resolve two of them and then 'unresolve' all of them
x %>% resolve(glyco, Race) %>% desolve %>% decorations(Age, glyco, Race)
#> - Age
#>  - label: baseline subject age
#>  - guide: year
#> - glyco
#>  - label: alpha-1 acid glycoprotein concentration
#>  - guide: mg/dL
#> - Race
#>  - label: subject race
#>  - guide: Caucasian, Latin, Black