Skip to content
Prev 131959 / 398506 Next

combine variables to matrix

You can always make a loop (V1 corresponds to column
1, etc.) but as.matrix() is simpler, i.e. in your case

data.matrix <- as.matrix(data)
--- Andre Jung <ajung at gfz-potsdam.de> wrote:

            
https://stat.ethz.ch/pipermail/r-help/2007-July/137121.html