Learn R Programming

mudata2 (version 1.1.3)

new_mudata: 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

Run this code
validate_mudata(kentvillegreenwood)
new_mudata(kentvillegreenwood, x_columns = "date")

Run the code above in your browser using DataLab