NAs in R: some warnings (and a worked example; calculating standard deviations)
This post shows why is.na and !is.na are not ideal approaches to “clean” a dataset with missing values when we want to compute summary statistics. A guided example: Goal for the exercise: Check whether Italy or Germany change their mind about the US president more often. Step 1:…