Package: god 0.2.2

god: A Grammar of Data
One small vocabulary for manipulating tables, spelled the same way in R, in Python, and as plain text. A pipeline is checked whole before any of it runs, so a bad column is reported at the step that names it rather than failing partway through. The grammar owns the words, the checking and the messages; an engine underneath does the work. The manual, live in both languages, is at <https://psychometrician.github.io/god-book/>.
Authors:
god_0.2.2.tar.gz
god_0.2.2.zip(r-4.7-any)god_0.2.2.zip(r-4.6-any)god_0.2.2.zip(r-4.5-any)
god_0.2.2.tgz(r-4.6-any)god_0.2.2.tgz(r-4.5-any)
god_0.2.2.tar.gz(r-4.7-any)god_0.2.2.tar.gz(r-4.6-any)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
god/json (API)
| # Install 'god' in R: |
| install.packages('god', repos = c('https://psychometrician.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/psychometrician/god/issues
data-manipulationdata-wranglingdataframedplyrduckdbgrammar-of-datapandaspolarspythonrustsqlcargo
Last updated from:93b7cbcc3d. Checks:8 OK, 1 FAIL. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 127 | ||
| source / vignettes | OK | 242 | ||
| linux-release | OK | 188 | ||
| macos-release | OK | 101 | ||
| macos-oldrel | OK | 119 | ||
| windows-devel | OK | 104 | ||
| windows-release | OK | 104 | ||
| windows-oldrel | OK | 105 | ||
| wasm-release | FAIL | 157 |
Exports:addadd_combinationsadd_rowscollectdrop_duplicatesdrop_missingfill_missinggod_sqlgod_tablejoinkeeplengthenpickrenamerunshow_asshow_stepssortsummarizetaketake_lastuse_enginewiden
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Add or replace a column | add |
| Make the absent combinations appear | add_combinations |
| Add another table's rows | add_rows |
| Run a pipeline and get the table | collect |
| Drop repeated rows | drop_duplicates |
| Drop rows with missing values | drop_missing |
| Replace missing values in a column | fill_missing |
| The pipeline as the grammar's own text | format.god_pipeline |
| The drawing as text | format.god_steps |
| The query a pipeline becomes | god_sql |
| Read one of the book's example tables | god_table |
| Add another table's columns | join |
| Keep the rows where a condition holds | keep |
| Turn columns into rows | lengthen |
| Just these columns, or all but these | pick |
| Rename a column | rename |
| Run a pipeline | run |
| The same pipeline, written in a language you already know | show_as |
| What a pipeline does to the table, step by step | show_steps |
| Order the rows | sort |
| Collapse to one row per group | summarize |
| The first n rows | take |
| The last n rows, or the last n of each group | take_last |
| Run pipelines somewhere other than this machine | use_engine |
| Turn rows into columns | widen |