currency: Get the currencies of numbers within a string.

currencyR Documentation

Get the currencies of numbers within a string.

Description

See strex::str_extract_currencies().

Usage

str_extract_currencies(string)

extract_currencies(string)

str_nth_currency(string, n)

nth_currency(string, n)

str_first_currency(string)

first_currency(string)

str_last_currency(string)

last_currency(string)

Arguments

string

A character vector.

n

A vector of integerish values. Must be either length 1 or have length equal to the length of string. Negative indices count from the back: while n = 1 and n = 2 correspond to first and second, n = -1 and n = -2 correspond to last and second-last. n = 0 will return NA.


filesstrings documentation built on Feb. 16, 2023, 7:25 p.m.