Re: [R] array elements incorrect

2008-06-17 Thread Moshe Olshansky
If ind is the vector of rows of dat you are interested in then dat[ind,] is what you need. --- On Wed, 18/6/08, Paul Adams <[EMAIL PROTECTED]> wrote: > From: Paul Adams <[EMAIL PROTECTED]> > Subject: [R] array elements incorrect > To: r-help@r-project.org > Received:

[R] array elements incorrect

2008-06-17 Thread Paul Adams
Hello everyone, I have a question as to what code should be used if one wanted to subset from a dataframe of 7000rows by 38 columns.For example if you wanted to generate a array of 100 by 38 would you not use the following: Z<-(dat,dim=c(100,38)) where dat is the dataframe of 7000by 38 Whenever I