Description Usage Arguments Details Value Author(s) See Also
decode_county
converts county code fields into full-length names
by evaluating a scalar or vector of values of class character. It also
provides the option to include a "County" label.
1 | decode_county(code, label = FALSE)
|
code |
A scalar or vector of length n and class character containing one or more county codes. |
label |
A logical value (i.e. |
Output may be made categorical using function
factor
or as.factor
. This function also allows for easily
tallying counts using, e.g., function table
.
Values containing unrecognized county codes are coerced to NA
(missing) values and a warning message is thrown.
A scalar or vector of values of class character containing full-length county names. Missing values are preserved.
Jamison R. Crawford, Institutional Research Associate, Georgia State University
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.