Remove metadata with more than the given percentage of missing values, constant metadata and metadata with names as provided in the toFilter vector.

filterMetadata(data, toFilter = c(), na.threshold = 0, remove.neg = FALSE)

Arguments

data

a data frame with metadata items

toFilter

names of metadata to remove

na.threshold

percentage of NA values allowed, between 0 and 100

remove.neg

remove metadata items with negative values

Value

a data frame of filtered metadata items