Flexibly read .csv or .xlsx of lat/lon points or facility IDs
Source:R/read_and_clean_points.R
read_and_clean_points.Rd
Flexibly read .csv or .xlsx of lat/lon points or facility IDs
Details
*** THIS WOULD REPLACE SOME OF THE CODE IN server.R
and may want to merge with EJAM ::latlon_from_anything()
so one can read in a file or table or vectors - any format - and the other figures out if it is latlon or program IDs or registry IDs (but not NAICS?) and I guess turns those into lat, lon, siteid as below.
EJAM :: latlon_from_anything() uses
EJAMbatch.summarizer :: read_csv_or_xl() and
EJAM ::latlon_df_clean() which uses EJAM :: latlon_infer() latlon_as.numeric()
latlon_is.valid()
read_and_clean_points()
would be the most general / flexible broadest way to get points, but is still work in progress
is similar to what is done by EJAM ::latlon_from_anything()
except it also uses these functions:
EJAM ::latlon_from_siteid()
EJAM ::latlon_from_programid() but not _from_naics() ?