Skip to contents

Remove columns below a specific missing rate threshold.

Usage

filter_column_missing_rate(object, threshold, verbose)

# S3 method for default
filter_column_missing_rate(object, threshold = 0.5, verbose = TRUE)

# S3 method for Metabolite
filter_column_missing_rate(object, threshold = 0.5, verbose = TRUE)

Arguments

object

An object, data.frame, data.table or Metabolite.

threshold

missing rate threshold, default is 0.5. Other values: 0.2, 0.8.

verbose

print log information.

Value

An object after filtering column missing rate.

Examples

data(df_plasma)
d <- filter_column_missing_rate(df_plasma)
#> 
#> Number of columns with a missing rate >= 0.5 : n = 213
#>