Learn R Programming

specmine (version 3.1.6)

count_missing_values_per_sample: Count missing values per sample

Description

Counts the missing values on each sample of the dataset.

Usage

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

Run this code
# NOT RUN {
  ## 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)
# }

Run the code above in your browser using DataLab