शुरू करेंमुफ़्त में शुरू करें

Getting Census data with tidycensus

In this exercise, you will load and inspect data from the US Census and American Community Survey. The core functions of get_decennial() and get_acs() in tidycensus are used to obtain data from these sources; the Census and ACS are the defaults for these functions, respectively.

By inspecting the data, you'll get a sense of differences between decennial US Census data and data from the ACS, which is based on a sample and subject to a margin of error. Whereas get_decennial() returns a data value for each row, get_acs() returns estimate and moe columns representing the ACS estimate and margin of error.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Analyzing US Census Data in R

पाठ्यक्रम देखें

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

library(tidycensus)

# Obtain and view state populations from the US Census
state_pop <- ___(geography = "state", variables = "P001001")

___(state_pop)
कोड संपादित करें और चलाएँ