R/data.R

#' A data.frame containing basic demographic information about Japan.  
#'
#' @name df_japan_census
#' @usage data(df_japan_census)
#' @docType data
#' @references Taken from the "Total Population" table from the Statistics Bureau of Japan website
#' (\url{https://www.stat.go.jp/english/data/nenkan/1431-02.html}) on 12/1/2014.
#' @keywords data
NULL

#' A data.frame containing population estimates for Countries in 2012.   
#'
#' @name df_pop_country
#' @docType data
#' @references Taken from the WDI package with code SP.POP.TOTL for year 2012.
#' 
#' @keywords data
#' @usage data(df_pop_country)
NULL

#' A data.frame containing population estimates for US Counties in 2012.   
#'
#' @name df_pop_county
#' @docType data
#' @references Taken from the US American Community Survey (ACS) 5 year estimates.
#' 
#' @keywords data
#' @usage data(df_pop_county)
NULL

#' A data.frame containing population estimates for all Census Tracts in New York 
#' State in 2012.   
#'
#' @name df_pop_ny_tract
#' @docType data
#' @references Taken from the US American Community Survey (ACS) 5 year estimates.
#' 
#' @keywords data
#' @usage data(df_pop_ny_tract)
NULL

#' A data.frame containing election results from the 2012 US Presidential election.  
#'
#' @name df_president
#' @usage data(df_president)
#' @docType data
#' @references Taken from the FEC website on 11/21/2014.
#' @keywords data
#' @author Ari Lamstein and Richard Careaga
NULL

#' A data.frame containing population estimates for US States in 2012.   
#'
#' @name df_pop_state
#' @docType data
#' @references Taken from the US American Community Survey (ACS) 5 year estimates.
#' 
#' @keywords data
#' @usage data(df_pop_state)
NULL

#' A data.frame containing median age estimates for US states in 2010
#' 
#' @name df_state_age_2010
#' @docType data
#' @references Taken from the US American Community Survey (ACS) 5 year estimates.
#' 
#' @keywords data
#' @usage data(df_state_age_2010)
NULL

#' A data.frame containing median age estimates for US states in 2015
#' 
#' @name df_state_age_2015
#' @docType data
#' @references Taken from the US American Community Survey (ACS) 5 year estimates.
#' 
#' @keywords data
#' @usage data(df_state_age_2015)
NULL

#' A data.frame containing all US presidential election results from 1789 to 2012
#' 
#' Legend: 
#' \itemize{
#'  \item R = Republican
#'  \item D = Democratic
#'  \item DR = Democratic-Republican
#'  \item W = Whig
#'  \item F = Federalist
#'  \item GW = George Washington
#'  \item NR = National Republican
#'  \item SD = Southern Democrat
#'  \item PR = Progressive
#'  \item AI = American Independent
#'  \item SR = States' Rights
#'  \item PO = Populist
#'  \item CU = Constitutional Union
#'  \item I = Independent
#'  \item ND = Northern Democrat
#'  \item KN = Know Nothing
#'  \item AM = Anti-Masonic
#'  \item N = Nullifier
#'  \item SP = Split evenly
#' }
#' @docType data
#' @references Taken from \url{https://en.wikipedia.org/wiki/List_of_United_States_presidential_election_results_by_state} 3/20/2014.
#' @keywords data
#' @name df_president_ts
#' @usage data(df_president_ts)
NULL

#' A data.frame containing demographic statistics for each state plus the District of Columbia.
#'
#' @name df_state_demographics
#' @docType data
#' @references Data comes from the 2013 5-year American Community Survey (ACS). Data generated by
#' ?get_state_demographics. 
#' @keywords data
#' @usage data(df_state_demographics)
#' @examples
#' \dontrun{
#' library(choroplethr)
#' data(df_state_demographics)
#' 
#' # examine the 2013, 5-year state percent hispanic estimates as a boxplot and choropleth
#'
#' # the boxplot shows the distribution
#' boxplot(df_state_demographics$percent_hispanic)
#' 
#' # the choropleth map shows the location of the values
#' # first set the 'value' column to be the column we want to render
#' df_state_demographics$value = df_state_demographics$percent_hispanic
#' state_choropleth(df_state_demographics)
#' }
NULL

#' A data.frame containing demographic statistics for each county in the United States.
#'
#' @name df_county_demographics
#' @docType data
#' @references Data comes from the 2013 5-year American Community Survey (ACS). Data generated by
#' ?get_county_demographics. 
#' @keywords data
#' @usage data(df_county_demographics)
#' @examples
#' \dontrun{
#' library(choroplethr)
#' data(df_county_demographics)
#' 
#' # examine the 2013, 5-year county percent hispanic estimates as a boxplot and choropleth
#'
#' # the boxplot shows the distribution
#' boxplot(df_county_demographics$percent_hispanic)
#' 
#' # the choropleth map shows the location of the values
#' # first set the 'value' column to be the column we want to render
#' df_county_demographics$value = df_county_demographics$percent_hispanic
#' county_choropleth(df_county_demographics)
#' }
NULL

#' A data.frame containing demographic statistics for each Census Tract in New York State.
#' 
#' @name df_ny_tract_demographics
#' @docType data
#' @references Data comes from the 2013 5-year American Community Survey (ACS). Data generated by
#' ?get_tract_demographics. 
#' @keywords data
#' @usage data(df_ny_tract_demographics)
NULL

#' A vector of the names of US Continental US States.
#'
#' @name continental_us_states
#' @usage data(continental_us_states)
#' @docType data
#' @keywords data
#' @author Ari Lamstein
NULL

#' A data.frame containing geographic metadata about the Congressional Districts of the 116th US Congress
#' 
#' Column region is how the Census Bureau refers to the geography. Note that this region is a 4-character string,
#' and so has a leading 0 if necessary. The first two characters are the state FIPS code, and the second two characters
#' are the district ID. States that only have 1 district (i.e. a representative "at large") have district 00. 
#' All other states start at 01.
#' 
#' @name congress116.regions
#' @usage data(congress116.regions)
#' @docType data
#' @keywords data
NULL

#' A data.frame containing party affiliation data about the Congressional Districts of 116th US Congress
#' 
#' Contains the party affiliation of each member elected to the House of Representatives of the 116th Congress, along with metadata.
#' Note that party affiliation is of who the citizens voted for, and not who is currently 
#' (July 30, 2020) serving. Currently three members have resigned since being elected, one 
#' switched party and one died. For details of how this data was compiled, please see function 
#' get_congressional_116_party_data in file get_congress_116_party_data. That file ships with this package, 
#' but is not exported, since it relies on scraping data from Wikipedia, and that web page is subject 
#' to change.
#' @name df_congress116_party
#' @usage data(df_congress116_party)
#' @docType data
#' @keywords data
NULL

#' A data.frame containing demographic statistics about the 116th Congressional Districts
#' 
#' @name df_congress116_demographics
#' @docType data
#' @references Data comes from the 2018 5-year American Community Survey (ACS). Data generated by
#' ?get_congressional_district_demographics 
#' @keywords data
#' @usage data(df_congress116_demographics)
NULL

Try the choroplethr package in your browser

Any scripts or data that you put into this service are public.

choroplethr documentation built on July 9, 2023, 5:35 p.m.