Package: dataclass 1.0.0
dataclass: 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.
Authors:
dataclass_1.0.0.tar.gz
dataclass_1.0.0.zip(r-4.5)dataclass_1.0.0.zip(r-4.4)dataclass_1.0.0.zip(r-4.3)
dataclass_1.0.0.tgz(r-4.4-any)dataclass_1.0.0.tgz(r-4.3-any)
dataclass_1.0.0.tar.gz(r-4.5-noble)dataclass_1.0.0.tar.gz(r-4.4-noble)
dataclass_1.0.0.tgz(r-4.4-emscripten)dataclass_1.0.0.tgz(r-4.3-emscripten)
dataclass.pdf |dataclass.html✨
dataclass/json (API)
# Install 'dataclass' in R: |
install.packages('dataclass', repos = c('https://walkerjameschris.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/walkerjameschris/dataclass/issues
Last updated 2 months agofrom:1c399799fb. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 23 2024 |
R-4.5-win | OK | Nov 23 2024 |
R-4.5-linux | OK | Nov 23 2024 |
R-4.4-win | OK | Nov 23 2024 |
R-4.4-mac | OK | Nov 23 2024 |
R-4.3-win | OK | Nov 23 2024 |
R-4.3-mac | OK | Nov 23 2024 |
Exports:any_objatm_vecchr_vecdata_validatordataclassdf_likedte_vecenforce_typeslgl_vecnum_vec
Dependencies:clidplyrfansigenericsgluelifecyclemagrittrpillarpkgconfigpurrrR6rlangtibbletidyselectutf8vctrswithr
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Validator: Allow any object | any_obj |
Validator: Check if element is atomic | atm_vec |
Validator: Check if element is a character | chr_vec |
Convert a dataclass to a data frame validator | data_validator |
Construct a dataclass in R | dataclass |
Validator: Check if element is a data like object | df_like |
Validator: Check if element is a date | dte_vec |
Enforced typing in R *[Experimental]* | enforce_types |
Validator: Check if element is a logical | lgl_vec |
Validator: Check if element is a number | num_vec |