powered by
percent
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)
is_percent(x)
as_percent(x)
An S3 vector of class lvmisc_percent.
lvmisc_percent
For percent(): A numeric vector
percent()
For is_percent(): An object to test.
is_percent()
For as_percent(): An object to cast.
as_percent()
percent(c(0.25, 0.5, 0.75))
Run the code above in your browser using DataLab