Hi,
On Fri, Jun 1, 2012 at 12:05 PM, pigpigmeow wrote:
> Thank, it OK now
> but I don't understand what is the meaning of y <- y[!is.na(y[5]),]
> Thank in advance!
This is very basic R syntax. You should definitely read the
Introduction to R, and also
?"["
?"!"
?is.na
Sarah
--
Sarah Goslee
ht
Thank, it OK now
but I don't understand what is the meaning of y <- y[!is.na(y[5]),]
Thank in advance!
--
View this message in context:
http://r.789695.n4.nabble.com/please-help-Extract-the-row-to-the-new-file-by-using-if-statment-tp4631957p4632090.html
Sent from the R help mailing list archive
Not sure whether I understand your data and objectives well enough but here is
what I would do:
To make my life easier, I used x as a variable name. I'm not using attach().
You can extract your data with something like
y <- x[x$wrfta>= 255 | x$wrfta<= 65 & x$wrfrain == 0, ]
y <- y[!is.na(y[5]),]
Dear all,
I find some troubles about how to extact the row from csv. file by using
if-statement condition.
I want to extract the row if the rainfall is greater than the mean of
rainfall and using the wrfta divided into 3 groups
that's
rainfall greater than mean -> group A ( create file group A_rai
4 matches
Mail list logo