This function takes a dataframe as input and returns a tibble summarizing the number of missing values (NA) in each column and the number of rows with at least one missing value.
countMissing(df)
A tibble with the following columns:
NA_<column_name>: Number of NAs in each original column
missing_rows: Number of rows with at least one NA across all columns
A dataframe to analyze.