nth_number_after_mth(string, pattern, n, m, decimals = FALSE,
leading_decimals = FALSE, negs = FALSE, leave_as_string = FALSE)nth_number_after_first(string, pattern, n, decimals = FALSE,
leading_decimals = FALSE, negs = FALSE, leave_as_string = FALSE)
nth_number_after_last(string, pattern, n, decimals = FALSE,
leading_decimals = FALSE, negs = FALSE, leave_as_string = FALSE)
first_number_after_mth(string, pattern, m, decimals = FALSE,
leading_decimals = FALSE, negs = FALSE, leave_as_string = FALSE)
last_number_after_mth(string, pattern, m, decimals = FALSE,
leading_decimals = FALSE, negs = FALSE, leave_as_string = FALSE)
first_number_after_first(string, pattern, decimals = FALSE,
leading_decimals = FALSE, negs = FALSE, leave_as_string = FALSE)
first_number_after_last(string, pattern, decimals = FALSE,
leading_decimals = FALSE, negs = FALSE, leave_as_string = FALSE)
last_number_after_first(string, pattern, decimals = FALSE,
leading_decimals = FALSE, negs = FALSE, leave_as_string = FALSE)
last_number_after_last(string, pattern, decimals = FALSE,
leading_decimals = FALSE, negs = FALSE, leave_as_string = FALSE)
A character vector.
A character vector. Pattern(s) specified like the pattern(s)
in the stringr package (e.g. look at stringr::str_locate()). If
this has length >1 its length must be the same as that of string.
Natural numbers.
Natural numbers.
Do you want to include the possibility of decimal numbers
(TRUE) or not (FALSE, the default).
Do you want to allow a leading decimal point to be the start of a number?
Do you want to allow negative numbers? Note that double negatives are not handled here (see the examples).
Do you want to return the number as a string (TRUE)
or as numeric (FALSE, the default)?