
Calculate the percentage of NAs in each row of the dataset
Source:R/qc_summary.R
calc_na_percentage_row.Rdcalc_na_percentage_row() calculates the percentage of NAs in each row of the input dataset.
It filters out the rows with 0% missing data and returns the rest in descending order.
Details
The counts are accumulated with rowSums() over blocks of columns instead of
rowwise(), which evaluates once per row and becomes the dominant cost on
datasets with thousands of samples and features. Chunking keeps the temporary
logical matrix small regardless of how many features there are.