I have a large chunk of NA data, and I would like to exclude all rows with NA data from my dataset. I tried using
mydata[complete.cases(mydata), ]
but it didn't work. When I View the dataset, the rows are still there. Note that these missing data are not a conceptual problem. I had given participants the option to report up to 30 y-variable examples, but most chose not to report more than 10; however, the dataset contains 30 row per person, even though it turned out more than half of them are empty!
Any suggestions on how to delete NA rows from my dataset?
Thanks!