Skip to content

Add pre_sort() and sorting_hat()#1

Open
gadenbuie wants to merge 1 commit intomasterfrom
sort-hat
Open

Add pre_sort() and sorting_hat()#1
gadenbuie wants to merge 1 commit intomasterfrom
sort-hat

Conversation

@gadenbuie
Copy link
Member

library(tricks)

ggplot2::midwest %>% 
  pre_sort() %>% 
  sorting_hat()
#>                col_name    type n_unique n_complete         cv
#> 1                   PID integer      437        437         NA
#> 2                county  factor      320        437         NA
#> 3                 state  factor        5        437         NA
#> 4                  area numeric       70        437 0.44254075
#> 5              poptotal integer      435        437         NA
#> 6            popdensity numeric      436        437 2.47430204
#> 7              popwhite integer      437        437         NA
#> 8              popblack integer      306        437         NA
#> 9         popamerindian integer      271        437         NA
#> 10             popasian integer      274        437         NA
#> 11             popother integer      256        437         NA
#> 12            percwhite numeric      437        437 0.07416778
#> 13            percblack numeric      437        437 1.91896492
#> 14        percamerindan numeric      437        437 5.67743675
#> 15            percasian numeric      437        437 1.28858153
#> 16            percother numeric      435        437 1.74930395
#> 17            popadults integer      436        437         NA
#> 18              perchsd numeric      437        437 0.07899863
#> 19           percollege numeric      437        437 0.34269134
#> 20             percprof numeric      437        437 0.54155315
#> 21      poppovertyknown integer      436        437         NA
#> 22     percpovertyknown numeric      437        437 0.02831691
#> 23     percbelowpoverty numeric      437        437 0.41166644
#> 24 percchildbelowpovert numeric      437        437 0.43949836
#> 25     percadultpoverty numeric      437        437 0.46792387
#> 26   percelderlypoverty numeric      436        437 0.32147201
#> 27              inmetro integer        2        437         NA
#> 28             category  factor       16        437         NA

Created on 2019-01-31 by the reprex package (v0.2.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant