geography() will return the geography of an acs
object, as a dataframe. Depending on the format of the data at import
(and possibly the values of
geocols=, if the object was created
read.acs), this may have multiple columns, but the number
of geographic rows should be the same as the number of rows of the acs
estimates and standard errors.
When used for assignment,
geography<- will change the values
contained in the metadata, replacing the existing dataframe with a new
one. To replace a single value or a limited subset, call with
geography(object)[[i]]<-value; note that the brackets should
occur outside the call – you are subsetting the dataframe, not
To help with replacement operations, the package provides a new
prompt method, which can be used to interactively set new
values for geography (as well as other metadata); see
1 2 3
an acs object
a dataframe containing geographic metadata; must contain the same number of rows as the object
Returns (or replaces) a dataframe containing the
geography slot of an object.
Ezra Haber Glenn [email protected]
prompt.acs, a helper function to interactively generate
a new geography dataframe to be used for replacement.
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.