[R] help for matrix formation.

From: Lakshmi Dhevi Baskar <lavanya_ldb2000_at_yahoo.co.in>
Date: Thu 17 Mar 2005 - 16:15:59 EST


Dear people,

 I've been trying to find a way to do the following.

I have a data set in text file with 3 columns and 2400 rows. i tried to read the table as fisrt<-("ex.txt",header=FALSE)  

I would like to read the third column values (which has 2400 value) and split them into matrix of size (600,4):  

as
first 600 column values in first column in matrix and next 600 next values(600 to 1200) as values in second column in matrix and so on.  

and could you also suggest me how to retrieve those items in matrix like matrix(520,3) =0 ...  

thanks in advance for the help.                   


        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Mar 17 16:24:25 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:50 EST