VgetSchoolDistrict: Vector Get School District

Description Usage Arguments Value Examples

View source: R/Geocode.R

Description

Takes a vector of one line addresses (USA only) and returns the school district serving those address using the first matches from the US Census API

Usage

1
VgetSchoolDistrict(addrVec, halt = T, na.rm = F, messageLevel = 0)

Arguments

addrVec

Character vector containing addresses

halt

logical of length 1 indicating whether to halt if no school district is found

na.rm

logical of length 1 indicating whether to remove NA's from the returned vector (ignored if halt is TRUE)

messageLevel

integer of length 1 indicating the level of messaging to print

Value

Character vector containing the names of the school districts or NA's

Examples

1
2
3
4
addrVecExample = c("1 MAIN ST, ALBANY, NY, 12204", "1234 MAIN Blvd, ALBANY, NY, 12204", "1234 MAIN Blvd, ALBANY, NY, 12204")
VgetSchoolDistrict(addrVecExample)
VgetSchoolDistrict(addrVecExample, halt = F)
VgetSchoolDistrict(addrVecExample, halt = F, na.rm = T)

debarros/dbTools documentation built on Sept. 18, 2020, 10:51 a.m.