|
You are here |
dplyr.tidyverse.org | ||
| | | | |
tidyselect.r-lib.org
|
|
| | | | | These selection helpers match variables according to a given pattern. starts_with(): Starts with an exact prefix. ends_with(): Ends with an exact suffix. contains(): Contains a literal string. matches(): Matches a regular expression. num_range(): Matches a numerical range like x01, x02, x03. | |
| | | | |
purrr.tidyverse.org
|
|
| | | | | These functions are variants of map() that iterate over two arguments at a time. | |
| | | | |
josiahparry.com
|
|
| | | | | [AI summary] The article explains how to programmatically create and execute valid R code to programmatically extract datasets from packages. | |
| | | | |
kieranhealy.org
|
|
| | | With the 2020 U.S. Census in motion already, I've been looking at various pieces of data from the Census Bureau. I decided I wanted to draw some population pyramids for the U.S. over as long a time series as I could. What's needed for that are tables for, say, as many years as possible that show the number of males and females alive at every year of age from zero to the highest age you're willing to track. This sort of data is available on the Census website. But it tuned out to be somewhat tedious to assemble into a single usable series. (Perhaps it's available in an easy-to-digest form elsewhere, but I couldn't find it.) I initially worked with a couple of the excellent R packages that talk to the Census API (tidycensus and censusapi), hoping they'd give m... | ||