which of the following function will be used to convert the string to a vector?
-
string_split()
-
string_lrtrim()
-
string_concat()
-
string_substring()
A
Correct answer
Explanation
string_split() divides a string into a vector based on a delimiter, making it the correct choice for string-to-vector conversion. string_lrtrim() removes leading/trailing whitespace and returns a string. string_concat() joins strings and returns a string. string_substring() extracts a portion and returns a string.