remove_samples_by_na_metadata: Remove samples by NA on metadata

Description Usage Arguments Value Examples

Description

Remove samples from the dataset with the metadata's variable value with NAs.

Usage

1
remove_samples_by_na_metadata(dataset, metadata.var)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

metadata.var

metadata's variable.

Value

Returns the dataset with the samples with NA on metadata's variable removed.

Examples

1
2
3
4
5
  ## Example of removing samples that have NAs on metadata's variable
  library(specmine.datasets)
  data(cachexia)
  cachexia$metadata$Muscle.loss[10] = NA
  cachexia = remove_samples_by_na_metadata(cachexia, "Muscle.loss")

specmine documentation built on Sept. 21, 2021, 5:06 p.m.