I've been playing around with the airquality dataset in R and figuring out how to remove lines with missing values. I used the following command:
complete.cases(airquality)
AQ1<-airquality[complete.cases(airquality),]
How do I go about replacing the NA's in airquality with 0's and then creating a new dataframe, AQ2?
P.S. Does my command above create a new dataframe called AQ1?
Thanks