[R] please help! Extract the row to the new file by using if-statment

Sarah Goslee sarah.goslee at gmail.com
Fri Jun 1 20:33:07 CEST 2012


Hi,

On Fri, Jun 1, 2012 at 12:05 PM, pigpigmeow <glorykwok at hotmail.com> 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
http://www.functionaldiversity.org



More information about the R-help mailing list