how to check for missing data in a table in R and get it out code example
Example 1: how to count the number of NA in r
sum(is.na(df$col))
Example 2: percent of missing data in df r
# Apply on dataframe with missing values
sum(is.na(x))/prod(dim(x))