extract key and values for a character vector
Arguments
- v
character vector
- sep
separator between key and value
- key_loc
key location
- value_loc
value location
Examples
extract_kv(c("x: 1", "y: 2"))
#> x y
#> "1" "2"
extract key and values for a character vector
character vector
separator between key and value
key location
value location
extract_kv(c("x: 1", "y: 2"))
#> x y
#> "1" "2"