count_missing_values_per_sample: Count missing values per sample

Description Usage Arguments Value Examples

Description

Counts the missing values on each sample of the dataset.

Usage

1
count_missing_values_per_sample(dataset, remove.zero = TRUE)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

remove.zero

boolean value indicating if the results of samples with no missing value are removed.

Value

Returns a vector with the number of missing values on each sample.

Examples

1
2
3
4
5
  ## Example of counting the missing values on each sample
  library(specmine.datasets)
  data(cachexia)
  cachexia$data[10,10] = NA
  count_missing_values_per_sample(cachexia)

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