I’m trying to remove all the rows from my data frame in which the 3rd column is NA:
new.frame <- data[(!is.na(data$z)),]
But I’m getting an error.
Warning message:
In is.na(data$z) : is.na() applied to non-(list or vector) of type 'NULL'
How can I accomplish this?
Reproducible examples, please. Here is one that works: