[R] cbind question, please
erinm.hodgess at gmail.com
Fri Apr 24 00:41:05 CEST 2015
I have a cbind type question, please: Suppose I have the following:
dog <- 1:3
cat <- 2:4
tree <- 5:7
and a character vector
big.char <- c("dog","cat","tree")
I want to end up with a matrix that is a "cbind" of dog, cat, and tree.
This is a toy example. There will be a bunch of variables.
I experimented with "do.call", but all I got was
Any suggestions would be much appreciated. I still think that do.call
might be the key, but I'm not sure.
R Version 3-1.3, Windows 7.
Department of Mathematical and Statistics
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
[[alternative HTML version deleted]]
More information about the R-help