Learn R Programming

baizer (version 0.8.0)

extract_kv: extract key and values for a character vector

Description

extract key and values for a character vector

Usage

extract_kv(v, sep = ": ", key_loc = 1, value_loc = 2)

Value

a named character vector

Arguments

v

character vector

sep

separator between key and value

key_loc

key location

value_loc

value location

Examples

Run this code
extract_kv(c("x: 1", "y: 2"))

Run the code above in your browser using DataLab