extract_kv: extract key and values for a character vector

extract_kvR Documentation

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)

Arguments

v

character vector

sep

separator between key and value

key_loc

key location

value_loc

value location

Value

a named character vector

Examples

extract_kv(c("x: 1", "y: 2"))

baizer documentation built on Oct. 19, 2023, 9:07 a.m.