This function turns a data.frame into a spatial object using a reasonable default projection.
coordinatize( dt, latname = "lake_lat_decdeg", longname = "lake_lon_decdeg", crs_in = 4326, crs_out = albers_conic() )
dt | data.frame |
---|---|
latname | character name of latitude column; default is "lake_lat_decdeg" |
longname | character name of longitude column; default is "lake_lon_decdeg" |
crs_in | numeric epsg code; default is 4326 WGS84-lat-long |
crs_out | numeric epsg code; default is albers_conic |