Skip to contents

This function filters the input matrix x depending on the presence of NAs. A variable is removed if sum of NA elements is greater than a given percentage defined by threshold. Default is 0.5 (i.e. select variables with less than 50\

Usage

filter_by_na(x, threshold = 0.5, logger)

Arguments

x

the input matrix, where rows are observations and columns are variables.

threshold

the cutoff

logger

a Logger

Value

A Filtered object

Author

Alessandro Barberis