powered by
extract key and values for a character vector
extract_kv(v, sep = ": ", key_loc = 1, value_loc = 2)
a named character vector
character vector
separator between key and value
key location
value location
extract_kv(c("x: 1", "y: 2"))
Run the code above in your browser using DataLab