convert_abbreviation_to_number {risk.assessr}R Documentation

Convert Abbreviated Numbers to Integers

Description

Converts a string containing a number with optional 'K' or 'M' abbreviation into an integer.

Usage

convert_abbreviation_to_number(value)

Arguments

value

A character string representing a number (e.g., '1.2M', '500K', '100').

Value

An integer representation of the numeric value.


[Package risk.assessr version 2.0.0 Index]