Skip to contents

Russian standards prescribes to use comma as a decimal separator. This function removes spaces and converts string to number.

Usage

rus2num(x)

Arguments

x

the string with the number

Value

numeric the number converted from the string

Examples

rus2num("34 345,34")
#> [1] 34345.34