check_annotation_table: Validate Annotation Table Format

View source: R/check_functions.R

check_annotation_tableR Documentation

Validate Annotation Table Format

Description

This function checks if an annotation table meets the required format for metabolite annotation. It verifies the presence of necessary columns, data types, and ensures that no critical values are missing (NA).

Usage

check_annotation_table(annotation_table)

Arguments

annotation_table

A data frame containing the annotation data to be validated.

Value

The function returns a message indicating that the annotation_table meets the required format, or it stops with an error message if any checks fail.

Examples

## Not run: 
# Assuming `my_annotation_table` is the table to validate:
check_annotation_table(my_annotation_table)

## End(Not run)



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