how to find missing value in r code example Example: percent of missing data in df r # Apply on dataframe with missing values sum(is.na(x))/prod(dim(x))