[R] deleting row when any col is.na

John Kane jrkrideau at yahoo.ca
Sun Feb 11 14:13:57 CET 2007


--- Milton Cezar Ribeiro <milton_ruser at yahoo.com.br>
wrote:

> How can I delete rows from a data.frame where almost
> one collumns is.na()?
> 
> Kind regards,
> 
> miltinho

Can you explain a bit more and provide as simple
example of the problem? It is not clear what
importance the column with NA's has. 

If you simply wish to delete a row in a data.frame 

To delete row 6 in a data.frame: 

data1 <- data1[-6,]

Have a look at Part 6 of the Introduction to R for
more information



More information about the R-help mailing list