Learn R Programming

tsg (version 0.1.4)

parse_excel_numfmt_decimals: Parse decimal places from an Excel number format string

Description

Returns the number of decimal places encoded in the format string, or NA_integer_ if the string is not a recognised numeric format.

Usage

parse_excel_numfmt_decimals(numfmt)

Value

An integer scalar, or NA_integer_.

Arguments

numfmt

A single character string (e.g. "#,##0.00").