Usually helpful in setting extracted levels.

toString_to_character(string, sep = ",", stripWhitespace = TRUE)

Arguments

string

Long string with delimters, may be output of 'toString'.

sep

delimiter. Default is ",".

stripWhitespace

Whether to trim whitespace on both sides of resulting strings.

Value

A string.

Examples

concat <- toString(colnames(iris)) print(concat)
#> [1] "Sepal.Length, Sepal.Width, Petal.Length, Petal.Width, Species"
toString_to_character(concat)
#> Sepal.Length Sepal.Width Petal.Length Petal.Width Species #> "Sepal.Length" "Sepal.Width" "Petal.Length" "Petal.Width" "Species"