This function extracts values before the semicolon from a ";"-separated string.

keep_values(input)

Arguments

input

A character vector with ";"-separated strings

Value

A list of values before the semicolon in the input

Examples

input = c("A;var1", "B;var1", "C;var1")
values = keep_values(input)