An open API service indexing awesome lists of open source software.

https://github.com/walkerjameschris/dataclass

An R package for creating data structs with input validation.
https://github.com/walkerjameschris/dataclass

dataclasses validation

Last synced: 2 months ago
JSON representation

An R package for creating data structs with input validation.

Awesome Lists containing this project

README

          

# dataclass

> [!IMPORTANT]
> `dataclass` was archived on CRAN. There are better, well supported,
> alternatives for input validation like [`pointblank`](https://github.com/rstudio/pointblank).

## Easily Create Structured Lists or Data Frames with Input Validation

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.