count the numbers of na in a column r code example Example: how to count the number of NA in r sum(is.na(df$col))