mercredi 5 décembre 2018

R: Remove rows with NA

I have a data frame that looks like below:

price   product
120      x
Na       y
129      q
NA       k

I need to get result that looks like below:

price   product
120      x
129      q

The rows with NA can be removed. I tried to use ifelse formula but I couldn't do it. Thanks for any help and advise !

Aucun commentaire:

Enregistrer un commentaire