Laminar Insight

All about making data and insights flow flawlessly

Automatically Build Data Tables from US Census Survey!

Augment tidycensus function to automatically collect Census Bureau data.

This is a tutorial that demonstrates some basic to somewhat advanced steps of writing functions in R in the context of a real life project. I used tidycensus package to collect census data, added a wrapper function to enhance functionality of the out of the box functions, showed how to use tryCatch functionality to add fallback functionality to a function.