After the standard cleanup procedure for missing data (na.omit()) I missing data (na.omit()) unable to add new variables to the data.frame . Error length mismatch. That is, despite the removal of these rows from the set, they are tacitly present in the data.frame , while the frame dimension after deletion is 855, and the new variable being added has a length of 970 (as in the original data set).
Is there a simple way out?
tidyr::drop_na()But the reproducible example won't hurt at all - ikashnitsky