Learn R Programming

baizer (version 0.8.0)

percent_to_float: from percent number to float number

Description

from percent number to float number

Usage

percent_to_float(x, digits = 2, to_double = FALSE)

Value

float character or double of x

Arguments

x

percent number character

digits

hold n digits after the decimal point

to_double

use double output

Examples

Run this code
percent_to_float("12%")

Run the code above in your browser using DataLab