Description Usage Arguments Value Examples
Adds variable(s) to a SpatialPoints
1 | add_variable_spts(sp, df)
|
sp |
A SpatialPoints object. |
df |
A vector or a data frame. |
A SpatialPointsDataFrame
1 2 3 4 5 | stations <- imhen::stations
stations <- sf::as_Spatial(stations)
stations <- remove_data_spatialpoints(stations)
stations
add_variable_spts(stations, 1:length(stations))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.