Take a character
vector of percentages (e.g. "50%"
) and convert it to a
numeric
vector (e.g. 0.5
).
Usage
sanitizePercent(object, ...)
# S4 method for atomic
sanitizePercent(object)
# S4 method for character
sanitizePercent(object)
Take a character
vector of percentages (e.g. "50%"
) and convert it to a
numeric
vector (e.g. 0.5
).
sanitizePercent(object, ...)
# S4 method for atomic
sanitizePercent(object)
# S4 method for character
sanitizePercent(object)