Skip to contents

Replaces Unicode minus signs ("\u2212") with ASCII "-", removes either commas or spaces used as digit grouping (thousands) separators, then converts the result to numeric. Non-convertible values return NA with warnings suppressed.

Usage

OR.as.numeric(x)

Arguments

x

A string vector.

Value

A numeric vector.