parsenum: Parse text as numbers

View source: R/primitives.R

parsenumR Documentation

Parse text as numbers

Description

Parse text as numbers

Usage

parsenum(x, decimal = ".", grouping = ",", na = character(), strict = FALSE)

Arguments

x

An atomic vector.

decimal

Decimal mark used in the input strings.

grouping

Thousands-grouping mark used in the input strings.

na

Values treated as missing before parsing.

strict

Raise an error if any non-missing value fails to parse.

Value

A numeric vector.


basetable documentation built on Sept. 18, 2026, 9:13 a.m.