dataclass

From MaRDI portal
Software:57919



CRANdataclassMaRDI QIDQ57919

Easily Create Structured Lists or Data Frames with Input Validation

Chris Walker

Last update: 7 August 2023

Software version identifier: 0.1.8, 0.2.1, 0.3.0


Copyright license: MIT license, File License

Easily define templates for lists and data frames that validate each element. Specify the expected type (i.e., character, numeric, etc), expected length, minimum and maximum values, allowable values, and more for each element in your data. Decide whether violations of these expectations should throw an error or a warning. This package is useful for validating data within R processes which pull from dynamic data sources such as databases and web APIs to provide an extra layer of validation around input and output data.