has_less.than.eq.to_NA.thres: Checks which rows or columns have number of NAs less than or...

View source: R/utils.R

has_less.than.eq.to_NA.thresR Documentation

Checks which rows or columns have number of NAs less than or equal to NA threshold

Description

Checks which rows or columns have number of NAs less than or equal to NA threshold

Usage

has_less.than.eq.to_NA.thres(df, NA_thres, row.or.col = 1)

Arguments

df

Data frame or matrix

NA_thres

A number for NA threshold. 0 means that row/col has no NAs

row.or.col

A number indicating direction to apply function: either 1 for row-wise, 2 (default) for column-wise.

Value

A logical vector indicating whether the number of non-NA values is above the threshold: number of NA values <= NA threshold


kazeera/hourglass documentation built on April 5, 2025, 7:18 a.m.