getSchoolDistrict: Get School District

Description Usage Arguments Value Examples

Description

Takes a one line address (USA only) and returns the school district serving that address using the first match from the US Census API

Usage

1
getSchoolDistrict(addr, halt = T, messageLevel = 0)

Arguments

addr

Character vector of length 1 containing an address

halt

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

messageLevel

integer of length 1 indicating the level of messaging to print

Value

Character vector of length 1 containing the name of the school district or NA

Examples

1
2
3
getSchoolDistrict("1 MAIN ST, ALBANY, NY, 12204")
getSchoolDistrict("1234 MAIN Blvd, ALBANY, NY, 12204")
getSchoolDistrict("1234 MAIN Blvd, ALBANY, NY, 12204", halt = F)

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