Creates a double vector that represents percentages. When printed, it is
multiplied by 100 and suffixed with %
.
percent(x = double()) is_percent(x) as_percent(x)
x |
|
---|
An S3 vector of class lvmisc_percent
.
#> <lvmisc_percent[3]> #> [1] 25% 50% 75%