Learn R Programming

moodef (version 1.2.0)

string_to_string_vector: Transform a String into a String-Formatted Vector

Description

Converts a string into a string-formatted vector (e.g., "a<|>b<|>c" -> c("a", "b", "c")).

Usage

string_to_string_vector(str)

Value

A string representing a vector in R syntax (e.g., c("a", "b", "c")), or "\"\"" if the input string is empty.

Arguments

str

character A string to transform.