{"id":6799,"date":"2024-01-01T15:31:26","date_gmt":"2024-01-01T15:31:26","guid":{"rendered":"https:\/\/www.garysieling.com\/blog\/?p=6799"},"modified":"2024-01-01T15:31:41","modified_gmt":"2024-01-01T15:31:41","slug":"get-a-list-of-census-fields-available-at-the-geoid-level-in-r","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/get-a-list-of-census-fields-available-at-the-geoid-level-in-r\/","title":{"rendered":"Get a list of census fields available at the GEOID (block group) level in R"},"content":{"rendered":"\n<p>A couple of points here:<\/p>\n\n\n\n<ul>\n<li>Must use acs5 or decennial (acs1 not published to this level of detail)<\/li>\n\n\n\n<li>This is a table of the real world names to the internal\/terse SAS names<\/li>\n\n\n\n<li>The total list is 21k variables, so you probably need to filter to something<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>library(dplyr)\nlibrary(tidycensus) \nView(\n   load_variables(year=\"2020\", dataset=\"acs5\", cache=TRUE) \n   %>% filter(geography == \"block group\") \n   %>% filter(grepl('race', concept, ignore.case=TRUE)))<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A couple of points here:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[6],"tags":[659,450],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6799"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=6799"}],"version-history":[{"count":2,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6799\/revisions"}],"predecessor-version":[{"id":6801,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/6799\/revisions\/6801"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=6799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=6799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=6799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}