Description Usage Arguments Value Author(s) See Also Examples
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
with 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
subsetting (e.g., geography(object)[i,j]<-value
or
geography(object)[[i]]<-value
; note that the brackets should
occur outside the call – you are subsetting the dataframe, not
the object).
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
prompt.acs
.
1 2 3 |
object |
an acs object |
value |
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 eglenn@mit.edu
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.