Skip to contents

Drops title for decorated vectors. If option with_title is TRUE and x has a 'units' attribute, it removes the title attribute. See also make_title for coordinated use.

Usage

# S3 method for class 'dvec'
drop_title(x, ..., with_title = getOption("yamlet_with_title", TRUE))

Arguments

x

dvec

...

ignored arguments

with_title

whether to drop title

Value

dvec

Examples

library(magrittr)
1 %>% 
as_dvec(label = 'length', guide = 'mm') %>%
resolve %>%
desolve
#> [1] 1
#> attr(,"label")
#> [1] "length"
#> attr(,"guide")
#> [1] "mm"