acs.lookup-class: Class '"acs.lookup"'

Description Objects from the Class Slots Methods Author(s) See Also Examples

Description

A new class to hold the results of calls to acs.lookup, typically for possible modification and then passing to calls to acs.fetch (using the "variable=" argument).

Objects from the Class

Objects can be created by calls of the form new("acs.lookup", ...), but more typically will be created as output from calls to acs.lookup.

Slots

endyear:

Object of class "numeric" indicating the year of the census dataset; e.g., for data from the 2005-2009 ACS, endyear=2009

span:

Object of class "numeric" indicating the span in years of the census dataset; e.g., for data from the 2005-2009 ACS, span=5. For decennial census datasets (SF1 and SF3), span = 0.

args:

Object of class "list" containing the search terms used in the call to acs.lookup, including some or all of: keyword, table.name, endyear, dataset, table.number, and case.sensitive.

results:

Object of class "data.frame" containing character strings in four columns: variable.code, table.number, table.name, and variable.name.

Methods

+

signature(e1 = "acs.lookup", e2 = "acs.lookup"): used for combining two acs.lookup objects into one

c

signature(x = "acs.lookup"): used for combining two acs.lookup objects into one

endyear

signature(object = "acs.lookup"): returns endyear from acs.lookup object

[

signature(object = "acs.lookup"): used for subsetting an acs.lookup object

results

signature(object = "acs.lookup"): returns results (as dataframe) from acs.lookup object

span

signature(object = "acs.lookup"): returns span from acs.lookup object

Author(s)

Ezra Haber Glenn eglenn@mit.edu

See Also

acs.lookup

Examples

1
showClass("acs.lookup")

Example output

Loading required package: stringr
Loading required package: plyr
Loading required package: XML

Attaching package: 'acs'

The following object is masked from 'package:base':

    apply

Class "acs.lookup" [package "acs"]

Slots:
                                                  
Name:     endyear       span       args    results
Class:    numeric    numeric       list data.frame

acs documentation built on May 1, 2019, 8:41 p.m.