Comments (2)
datawizard::data_codebook(openintro::military)
#> openintro::military (1,414,593 rows and 6 variables, 6 shown)
#>
#> ID | Name | Type | Missings | Values | N
#> ---+--------+-------------+----------+-----------------+----------
#> 1 | grade | categorical | 0 (0.0%) | enlisted | 1,183,889
#> | | | | officer | 211,525
#> | | | | warrant officer | 19,179
#> ---+--------+-------------+----------+-----------------+----------
#> 2 | branch | categorical | 0 (0.0%) | air force | 331,486
#> | | | | army | 555,849
#> | | | | marine corps | 202,966
#> | | | | navy | 324,292
#> ---+--------+-------------+----------+-----------------+----------
#> 3 | gender | categorical | 0 (0.0%) | female | 202,718
#> | | | | male | 1,211,875
#> ---+--------+-------------+----------+-----------------+----------
#> 4 | race | categorical | 0 (0.0%) | ami/aln | 23,984
#> | | | | asian | 51,735
#> | | | | black | 241,133
#> | | | | multi | 26,054
#> | | | | p/i | 8,703
#> | | | | unk | 71,269
#> | | | | white | 991,715
#> ---+--------+-------------+----------+-----------------+----------
#> 5 | hisp | logical | 0 (0.0%) | FALSE | 1,265,480
#> | | | | TRUE | 149,113
#> ---+--------+-------------+----------+-----------------+----------
#> 6 | rank | integer | 0 (0.0%) | [1, 11] | 1,414,593
#> ------------------------------------------------------------------
Created on 2022-11-07 with reprex v2.0.2
from datawizard.
Also, for tests, I think it would be easier to use snapshots in this case because modifying hardcoded outputs one by one will be painful if there's a small change in design later.
Yeah, but I cannot get snapshot tests working properly. Once the design is stable, there's hopefully less change ;-)
from datawizard.
Related Issues (20)
- Fix failing test on windows-devel HOT 9
- `data_to_wide` fails with example HOT 4
- Do not make a new release yet HOT 5
- normalize(): do not include bounds for beta regression
- Fix vignette build failures in no suggests mode HOT 1
- data_filter drops attributes
- Alternative for (grouped) `dplyr::slice_min`? HOT 3
- `data_filter`: Add support for loop indices within functions? HOT 3
- Order of columns for `data_codebook()` HOT 4
- Add commas for title of `data_tabulate()`
- Have transformers work nice with `predict()` HOT 7
- `center` returns 0 when input is of length 1 HOT 2
- FR: Display percentages instead of counts in `data_codebook()` output
- Simplify code for linear transformers
- Dealing with commented code in standardize models function HOT 2
- Issues with creating codebook with labelled data HOT 6
- Use snapshot tests for `data_codebook()`
- Undo suboptimal formatting for `data_match.R` file HOT 15
- Suppress irrelevant messages in tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datawizard.