Re: [R] sorting data whilst ignoring NA's

2010-03-10 Thread emwater
Thanks for these suggestions. I tried them out and I get the error message: Error in qdata$flow : $ operator is invalid for atomic vectors Can anyone offer further suggestions on how to extract the values from atomic vectors? Thanks again Emma -- View this message in context:

[R] sorting data whilst ignoring NA's

2010-03-09 Thread emwater
Hello, I am very new to R and have hit my first main problem that I hope someone can easily resolve. I have some data that looks like this (there are 20,000 rows): qdata day month yearflow [1,] 210 1945 NA [2,] 310 1945 NA [3,] 410 1945 NA