new_mudata: Validate, create a mudata object

View source: R/mudata.R

new_mudataR Documentation

Validate, create a mudata object

Description

Validates a mudata object by calling rlang::abort when an error is found; creates a mudata object from a list. Validation is generally performed when objects are created using mudata, or when objects are read/writen using read_mudata and write_mudata.

Usage

new_mudata(md, x_columns)

validate_mudata(
  md,
  check_unique = TRUE,
  check_references = TRUE,
  action = abort
)

Arguments

md

An object of class 'mudata'

x_columns

The x_columns attribute (see mudata).

check_unique

Check if columns identify unique values in the appropriate tables

check_references

Check the referential integrity of the mudata object

action

The function to be called when errors are detected in validate_mudata

Examples

validate_mudata(kentvillegreenwood)
new_mudata(kentvillegreenwood, x_columns = "date")


mudata2 documentation built on Jan. 22, 2023, 1:48 a.m.