decomma: Remove commas from numeric fields and return them as numerics
Description
A shortcut function to strip commas out of numeric fields imported
from other software and convert them into numeric vectors that can be operated on. This assumes decimal point as opposed to decimal comma notation.
Usage
decomma(x)
Arguments
x
A character vector containing numbers with commas that should be coerced into being numeric.
Value
A numeric vector.
Details
This function assumes decimal point notation for numbers. For more information, see http://en.wikipedia.org/wiki/Decimal_mark#Countries_using_Arabic_numerals_with_decimal_point.