| nth_number_after_mth {filesstrings} | R Documentation |
See strex::str_nth_number_after_mth().
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)
string |
A character vector. |
pattern |
A character vector. Pattern(s) specified like the pattern(s)
in the stringr package (e.g. look at |
n |
Natural numbers. |
m |
Natural numbers. |
decimals |
Do you want to include the possibility of decimal numbers
( |
leading_decimals |
Do you want to allow a leading decimal point to be the start of a number? |
negs |
Do you want to allow negative numbers? Note that double negatives are not handled here (see the examples). |
leave_as_string |
Do you want to return the number as a string ( |