Skip to contents

Remove samples below a specific missing rate threshold.

Usage

filter_row_missing_rate(object, threshold, verbose)

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

# S3 method for Metabolite
filter_row_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.

Examples

data(df_plasma)
v <- filter_row_missing_rate(df_plasma)
#> 
#> Number of rows with a missing rate >= 0.5 : n = 0
#>