My dear R-helpers: I am a novice in R and have the following text string manipulation question.
Is there a function that performs the job described below? Say, wanted_output <- c("ab", "cd", "ef") #the function_wanted can generate c("ab", "cd", "ef") using ab cd ef as the single input argument wanted_output <- function_wanted(ab cd ef) Motivation: I have a very long list of character elements (like, ab cd ef gg ww kwfl ......), I try to avoid typing "," between two adjacent elements, typing " in front of the first element, and typing " right after the last element. when using them to generate a character vector. Many Thanks in advance. -Sean [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.