Hi all, I have been trying to solve this problem and have had no luck so far.

I have numeric vectors VAR1, VAR2, and VAR3 which I am trying to cbind. I also 
have a character vector "VAR1,VAR2,VAR3". How do I manipulate this character 
vector such that I can input a transformed version of the character vector into 
cbind and have it recognize that I'm trying to refer to my numeric vectors 
VAR1, VAR2, and VAR3.

i.e. make cbind(some transformed version of character vector) equivalent to 
cbind(VAR1,VAR2,VAR3)

Alternatively, starting with the console input: VAR1 VAR2 VAR3
how does one transform into the input VAR1,VAR2,VAR3

(to get my aformentioned character vector I am using gsub(" ",",","VAR1 VAR2 
VAR3"))

Thanks for the help!

Mike



      
        [[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.

Reply via email to