Skip to contents

Get state abbreviations

Usage

get_state(df)

Arguments

df

is the dataframe that includes the coordinate columns. Make sure to rename columns to 'lat', 'lon'

Examples

 df 
#> function (x, df1, df2, ncp, log = FALSE) 
#> {
#>     if (missing(ncp)) 
#>         .Call(C_df, x, df1, df2, log)
#>     else .Call(C_dnf, x, df1, df2, ncp, log)
#> }
#> <bytecode: 0x558e4588fc30>
#> <environment: namespace:stats>
df$state <- get_state(df)
#> Warning message:
#> Missing lat, lon columns. 
#> Please rename coordinate columns to "lat", "lon"
#> Error in df$state <- get_state(df): object of type 'closure' is not subsettable