How do I remove more than one section from a split data frame in r that uses lapply()?
I have created a function that I use in lapply() an already split data frame. The problem is that lapply() does not fully run through the function if some parts of the conditions of the split data frame are missing. Or is there a way to remove the sections that contain NAs through lapply()?
Another problem is that I cannot remove the sections with NA’s before I use the lapply() code because lapply() wants all the conditions in the split() function to be there or else it gives the same error as if there are sections of NAs.