read_locations: Load Locations Dataset

View source: R/locations.R

read_locationsR Documentation

Load Locations Dataset

Description

Load Locations Dataset

Usage

read_locations(file, id = NULL, xy = c("lng", "lat"), proj4 = NULL, ...)

Arguments

file

The path of the file to be read.

id

Name of the column with a unique identifier (renamed to "id"). If NULL, locations are assigned an integer id corresponding to their order of appearance in the file.

xy

(delimited text files only) Names of the columns with x and y coordinates (renamed to "lng", "lat" respectively).

proj4

Current coordinate reference system expressed as a proj.4 string (http://proj4.org/parameters.html) or EPSG integer code (http://spatialreference.org/ref/epsg/). If specified, overrides any embedded value (spatial data). If NULL, the embedded value is used (spatial data) or WGS 84 (EPSG:4326) is assumed if missing.

...

Additional parameters passed to fread (delimited text files), readOGR (spatial data), or read_xml (certain kml files).

See Also

Other location import functions: apply_match_table, build_match_table, match_names_to_ff_types, merge_overlapping_locations, write_locations_for_import


falling-fruit/fruitr documentation built on Dec. 21, 2024, 8:32 p.m.