clean.sumlevel: Utility to Clean SUMLEVEL for get.acs

View source: R/clean.sumlevel.R

clean.sumlevelR Documentation

Utility to Clean SUMLEVEL for get.acs

Description

Utility function used by get.acs().

Usage

clean.sumlevel(sumlevel = "bg")

Arguments

sumlevel

Character vector (1+ elements), optional, 'bg' by default. See details above.

Details

Interprets as 'bg' any of these: 150, '150', 'blockgroup', 'block group', or 'bg' (or variants, ignoring case)
Interprets as 'tract' any of these: 140, '140', or 'tract' (or variants, ignoring case)
Interprets as 'both' any of these: 'both' or a vector that has both of the above terms (or variants, ignoring case).

Value

Returns 'both', 'tract', or 'bg' (or stops with error if cannot interpret sumlevel input)

See Also

get.acs() which uses this


ejanalysis/ACSdownload documentation built on Jan. 18, 2025, 7:43 a.m.