percToNum: Percentage to numeric

Description Usage Arguments Value Examples

View source: R/percToNum.R

Description

Turns a character vector or matrix of percentages into numeric (dividing by 100).

Usage

1

Arguments

Y

A vector or matrix of strings that contains characters interpreted as numbers, except %.

Value

The numeric vector or matrix resulting. dimnames is left unchanged.

Examples

1
percToNum(c("2.13%", "5%", "-12.12%", "4%", "1.2%"))

unimi-dse/5547f4ce documentation built on Feb. 17, 2020, 4:03 a.m.