Package: schematic 0.1.2
schematic: Tidy Schema Validation for Data Frames
Validate data.frames against schemas to ensure that data matches expectations. Define schemas using 'tidyselect' and predicate functions for type consistency, nullability, and more. Schema failure messages can be tailored for non-technical users and are ideal for user-facing applications such as in 'shiny' or 'plumber'.
Authors:
schematic_0.1.2.tar.gz
schematic_0.1.2.zip(r-4.7)schematic_0.1.2.zip(r-4.6)schematic_0.1.2.zip(r-4.5)
schematic_0.1.2.tgz(r-4.6-any)schematic_0.1.2.tgz(r-4.5-any)
schematic_0.1.2.tar.gz(r-4.7-any)schematic_0.1.2.tar.gz(r-4.6-any)
schematic_0.1.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
schematic/json (API)
NEWS
| # Install 'schematic' in R: |
| install.packages('schematic', repos = c('https://whipson.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/whipson/schematic/issues
Pkgdown/docs site:https://whipson.github.io
Last updated from:cda4bcea80. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 121 | ||
| source / vignettes | OK | 174 | ||
| linux-release-x86_64 | OK | 119 | ||
| macos-release-arm64 | OK | 198 | ||
| macos-oldrel-arm64 | OK | 129 | ||
| windows-devel | OK | 89 | ||
| windows-release | OK | 81 | ||
| windows-oldrel | OK | 80 | ||
| wasm-release | OK | 107 |
Exports:check_schemais_all_distinctis_incrementingis_non_nullis_positive_integeris_textis_whole_numberlast_check_errorsmod_infinitablemod_nullableschema
Dependencies:cligluelifecyclemagrittrpurrrrlangtidyselectvctrswithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Validate a data.frame against a schema | check_schema |
| Check if all values in a vector are distinct | is_all_distinct |
| Check if the vector is sorted numerically or alphanumerically | is_incrementing |
| Check if all values are not NA | is_non_null |
| Check if a vector has all positive integers | is_positive_integer |
| Check if a vector is text-based (character or factor) | is_text |
| Check if a vector has all whole numbers | is_whole_number |
| Retrieve latest schematic run time errors | last_check_errors |
| Ignore infinite values in a predicate | mod_infinitable |
| Allow NA in a predicate | mod_nullable |
| Print method for Schema | print.Schema |
| Create a schema object | schema |
