percent: 'percent' vector

Description Usage Arguments Value Examples

View source: R/percent_class.R

Description

Creates a double vector that represents percentages. When printed, it is multiplied by 100 and suffixed with %.

Usage

1
2
3
4
5

Arguments

x
  • For percent(): A numeric vector

  • For is_percent(): An object to test.

  • For as_percent(): An object to cast.

Value

An S3 vector of class lvmisc_percent.

Examples

1
percent(c(0.25, 0.5, 0.75))

lvmisc documentation built on April 5, 2021, 5:06 p.m.