The function splits any character string at each tab and space and returns all (min_only = FALSE) or only the first (min_only = T) numeric value found in the string.
str_split_twice(char, min_only = TRUE)
char | Character string. |
---|---|
min_only | Logical specifying if only the first numeric value ( |
numeric values inside char
string.
str_split_twice(char = "Hello 15")#> [1] 15str_split_twice(char = "flag1 15 16\t15", min_only = FALSE)#> [1] 15 16 15