Description Usage Arguments Details Value References Examples
View source: R/getCensusApi2.R
getCensusApi2
assembles URL components for getCensusApi
.
1 | getCensusApi2(data_url, key, get, region)
|
data_url |
URL root of the API, including the question mark,
e.g., |
key |
A required character object containing user's Census API key, which can be requested here. |
get |
A character vector of variables to get,
e.g., |
region |
Character object specifying which region to obtain data for.
Must contain "for" and possibly "in",
e.g., |
This function assembles the URL components and sends the request to the Census server.
It is used by the getCensusApi
function. The user should not need to call this
function directly.
If successful, output will be an object of class data.frame
.
If unsuccessful, function prints the URL query that was constructed.
Based on code authored by Nicholas Nagle, which is available here.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.