Giter Site home page Giter Site logo

Comments (2)

strengejacke avatar strengejacke commented on June 18, 2024
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.

strengejacke avatar strengejacke commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.