hadley / babynames Goto Github PK
View Code? Open in Web Editor NEWAn R package containing US baby names from the SSA
Home Page: http://hadley.github.io/babynames/
An R package containing US baby names from the SSA
Home Page: http://hadley.github.io/babynames/
The current births
data set only contains the total number of children by year. I'm finding it nearly impossible to do anything useful with it.
If we break the births
data out by sex and year, we can do all of the examples we used to do in Stat 405. If you'd like the births
data set we used in Stat 405, let me know. I still have it.
I am aware of this bc the name Isis has apparently ousted Hillary/Hilary as the fastest dropping name. I can take a stab at incorporating and send a PR.
Prepare for release:
urlchecker::url_check()
devtools::check(remote = TRUE, manual = TRUE)
devtools::check_win_devel()
cran-comments.md
Submit to CRAN:
usethis::use_version('patch')
devtools::submit_cran()
Wait for CRAN...
usethis::use_github_release()
usethis::use_dev_version()
...which were just released recently:
https://www.ssa.gov/oact/babynames/limits.html - National data now has a .txt file for 2014. I can create a pull request if you like, but I wasn't sure if it'd be easier for you to just re-source your data-raw script.
I think they're here: http://www.ssa.gov/oact/NOTES/as120/LifeTables_Body.html#wp1168594
Should be "containing". Don't think I can submit a PR for this. Sorry for the triviality ๐
Rank is the most common way that baby name popularity is discussed. In 2016 "Jaxon" for a boy had n = 8054, prop = 0.00401, rank = 51. For the typical person, knowing it's the 51st most popular boy name may be more digestible than the other measures.
Rank is displayed on mouseover here: http://www.babynamewizard.com/voyager
Should this project gain usethis::use_tidy_coc()
?
Easily updated:
applicants: can run applicants.R as is
names: can run names.R as is after running applicants.R
Less so:
births: I don't have .xls file to run the script. Manually-obtained total for 2016 is 3945875 (p.2)
lifetables: script lifetables.R does not work, this URL is now broken: "http://www.ssa.gov/oact/NOTES/as120/LifeTables_Tbl_7_%s.html
Given that there's already a manual data entry element to births, it might be worth hardcoding the births data in the package already into births.R and eliminating reference to the .xls source except as a comment.
I will submit a PR for names (probably the most used part of this package) and applicants.
This package Imports {tibble}
, but I don't see an obvious reason that might be required. Can that requirement be dropped?
Hi Hadley,
I work for OpenIntro managing a small team of volunteers who build datasets to be included in packages associated with those textbooks. One of my volunteers built a dataset using the same source as this package. It includes the top 20 names for all years up to 2020.
I wanted to raise an issue to see if you'd be interested in adding it to this package before I opened a PR. You can view the dataset here. I can change the name of the dataset to better reflect the content if you decide its worth adding to babynames; it was named by the volunteer with the intent of being in openintro but seems more relevant here.
Best,
~Nick
Submit to CRAN:
usethis::use_version('1.0.0')
devtools::check_win_devel()
(again!)devtools::submit_cran()
Wait for CRAN...
usethis::use_release_tag()
usethis::use_dev_version()
@hadley It looks like the PR for the 2016 data didn't catch your attention. Would one for 2017? :)
Related... I found an XLS by the same name as the one you note went missing from the census website in two locations...
http://webapp1.dlib.indiana.edu/virtual_disk_library/index.cgi/4232284/FID3473/Sprdshts/MINI-HS/02HS0013.xls and https://www2.census.gov/library/publications/2004/compendia/statab/123ed/hist/02HS0013.xls
The only difference appears to be that births in {babynames} appears to be rounded/truncated at the 1000s place whereas my source documents have a more detailed count.
I'm playing with the data and wondering why
totals <- babynames %>%
group_by(year) %>%
summarize(totprop = sum(prop), tot=sum(n))
doesn't return what I was expecting. I know tot
in my summarized data should be less than n_all
in the applicants
data because uncommon names aren't represented in babynames
, but why doesn't totprop
add up to something less than or equal to 1? Most totprop
s are about 1.8.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.