Pct: Percetage Vectors

View source: R/Pct.R

PctR Documentation

Percetage Vectors

Description

Creates objects of type "hd_Pct". hd_Pct format accepts anything coercible from double(). It also recognizes number with percentage symbol in a character value, as it could be "20%".

Usage

Pct(x = double())

Arguments

x

object to be created as Num type

Examples


## Example 1
pct_value <- Pct(c("1","0.2"))
pct_value
class(pct_value)

## Example 2
pct_value <- Pct(c("30 (%)", "(%)200", NA))
pct_value
class(pct_value)


jpmarindiaz/homodatum documentation built on May 1, 2023, 7:24 p.m.