Data frame is like

Where i have to remove the rows having atleast one N/A in any column of data frame.
Tried These
frame1 <- na.omit(frame1)
is.null(frame1)
[1] FALSE
Guess there's a difference between NA and N/A How can i remove the rows as explained
A <- data.frame(x=c(1,2,3,4),
y=c(1,2,3,4),
z=c(1,"N/A",3,4))
A[A == "N/A"] <- NA
na.omit(A)
The trick is to change your character values, "N/A" to what R understands to be NA.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With