gistlib
main.r# Create a sample data frame df <- data.frame( A = c(1, 2, NA, 4), B = c(NA, 2, 3, 4) ) # Check for missing values missing_values <- sum(is.na(df)) missing_values 168 chars10 lines
# Create a sample data frame df <- data.frame( A = c(1, 2, NA, 4), B = c(NA, 2, 3, 4) ) # Check for missing values missing_values <- sum(is.na(df)) missing_values
gistlibby LogSnag