Re: [R] selecting subsets of data from matrix

2003-10-20 Thread Jason Turner
Laura Quinn wrote: Thanks for your help everyone, My data is a matrix. However if i use the command: x[(x[,20] > 315 | x[,20] < 45), ] and then request a summary, I get a warning message saying that a large number of the row names have been duplicated - I don't understand this? If x is the orig

RE: [R] selecting subsets of data from matrix

2003-10-20 Thread Ted Harding
On 20-Oct-03 Laura Quinn wrote: > Probably a stupid question, but I don't seem to be able to find the > answer I'm looking for from any of the R literature. Basically I have > a matrix with several thousand rows and 20 columns(weather stations) > of wind direction data. > > I am wanting to extract

Re: [R] selecting subsets of data from matrix

2003-10-20 Thread Laura Quinn
Thanks for your help everyone, My data is a matrix. However if i use the command: x[(x[,20] > 315 | x[,20] < 45), ] and then request a summary, I get a warning message saying that a large number of the row names have been duplicated - I don't understand this? On 20 Oct 2003, Douglas Bates wrote

Re: [R] selecting subsets of data from matrix

2003-10-20 Thread Douglas Bates
Laura Quinn <[EMAIL PROTECTED]> writes: > Probably a stupid question, but I don't seem to be able to find the answer > I'm looking for from any of the R literature. Basically I have a matrix > with several thousand rows and 20 columns(weather stations) of wind > direction data. Is it a matrix or

Re: [R] selecting subsets of data from matrix

2003-10-20 Thread Corey Moffet
try: mat[(mat[,20] > 315 | mat[,20] < 45),] At 06:41 PM 10/20/2003 +0100, Laura Quinn wrote: >Probably a stupid question, but I don't seem to be able to find the answer >I'm looking for from any of the R literature. Basically I have a matrix >with several thousand rows and 20 columns(weather sta

Re: [R] selecting subsets of data from matrix

2003-10-20 Thread Ben Bolker
x[x[,20]<45 | x[,20]>315, ] On Mon, 20 Oct 2003, Laura Quinn wrote: > Probably a stupid question, but I don't seem to be able to find the answer > I'm looking for from any of the R literature. Basically I have a matrix > with several thousand rows and 20 columns(weather stations) of wind > dire