check_mass_dataset: Check Mass Dataset

View source: R/data_checking.R

check_mass_datasetR Documentation

Check Mass Dataset

Description

This function performs various checks on the mass dataset to ensure its integrity and consistency. It checks the format and content of expression_data, sample_info, variable_info, sample_info_note, and variable_info_note.

Usage

check_mass_dataset(
  expression_data,
  sample_info,
  variable_info,
  sample_info_note,
  variable_info_note
)

Arguments

expression_data

A data frame containing expression data.

sample_info

A data frame containing sample information.

variable_info

A data frame containing variable information.

sample_info_note

A data frame containing notes for sample information.

variable_info_note

A data frame containing notes for variable information.

Details

The function performs a series of checks to validate the integrity and consistency of the mass dataset. It checks for missing data, data types, and the relationship between different components of the dataset.

Value

A string indicating the result of the checks. It returns "all good." if all checks pass, otherwise it returns an error message.

Author(s)

Xiaotao Shen shenxt1990@outlook.com

Examples

data("expression_data")
data("sample_info")
data("variable_info")
  check_mass_dataset(
    expression_data = expression_data,
    sample_info = sample_info,
    variable_info = variable_info,
  )

tidymass/massdataset documentation built on Sept. 14, 2024, 4:41 p.m.