powered by
This function extracts values before the semicolon from a ";"-separated string.
keep_values(input)
A list of values before the semicolon in the input
A character vector with ";"-separated strings
input = c("A;var1", "B;var1", "C;var1") values = keep_values(input)
Run the code above in your browser using DataLab