[R] Converting data frame to array?

TAPO (Thomas Agersten Poulsen) tapo at novozymes.com
Fri May 28 21:10:47 CEST 2004


Dear List,

	Please bear with a poor newbee, who might be doing everything
backwards (I was brought up in pure math).

	I want to make a simple multi-linear regression on a set of
data. I did some expreiments, and if X is a 4 by 2 array and Y is a 4 by
1 array, I can do a linear regression by lm(y~x). 

	Now I have a tab-delimited text file with 10 rows of 300
measurements and an other file with 10 rows of one value each. When I
read in those files using read.delim(), I get data frames, and
apparently I can no longer do the multi-linear regression.

	Is there a way to convert the data frames into arrays, or am I
going the wrong way about this?

Sincerely
Thomas Poulsen




More information about the R-help mailing list