Description Usage Arguments Value Examples
Convert matrix or dataframe with coordinates to a spatial object
1 |
locs |
A matrix or dataframe containing coordinates data. If a matrix, the first two columns will be assumed to contain longitude and latitude coordinates, respectively. If a dataframe, the function will try to guess the columns containing the coordinates based on column names. |
proj |
Character string specifying the projection (see |
lon.col |
Character (optional). Name of the column containing longitude data. |
lat.col |
Character (optional). Name of the column containing latitude data. |
A SpatialPoints or SpatialPointsDataFrame.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.