Skip to contents

Deformat percent

Usage

defmt_pct(pct)

Arguments

pct

string eager to remove percent

Value

Numeric value without percent

Examples

defmt_pct("10.0%")
#> [1] 10
defmt_pct(c("10.0%", "(11.2%)"))
#> [1] 10.0 11.2