makeDemoGeo: Make the DEMO_GEO table

Description Usage Arguments

View source: R/makeTables.R

Description

This function returns a list, not a data frame. The list contains the DEMO_GEO, CITIES, and CITIES_REF portions of the database. Note that for CITIES to be complete, it has to be further passed through the makeCensusCountyDemo.R function, which also outputs a list.

Usage

1
makeDemoGeo(df, updateID, key, con, overwrite = T)

Arguments

df

Raw survey data as a data frame.

updateID

Character string that will become the 'updateID' column for this table. For example, "survey11Add" for Survey 11.

key

The API key for the hereR API

con

A connection to the existing database, created with RSQLite.

overwrite

Whether or not to overwrite existing geocoded localities, if 'geocoded' already exists in the environment. This parameter was mainly included for function testing and developmentā€“it pretty much never makes sense to set it to F when using the function.


kaijagahm/ygdpAddSurvey documentation built on July 22, 2021, 2:11 p.m.