Description Usage Arguments Details Value Author(s) See Also Examples
A helper function to convert a table of latitudes and longitudes (and associated attributes, if applicable) into a shapefile
1 | lats2Shape(lats)
|
lats |
a table with a latitude and longitude column respectively with associated attributes |
The table to be converted must contain as it's first two columns the latitude (or Y) and longitude (or X) values to be converted. Any other number of columns in any format can also be attached, and will be included in the attribute table.
A shapefile object which can be written to file using write.shapefile
Matthew Vavrek
1 2 3 4 5 6 7 | ## Not run:
#use fdata.lats as dataset
data(fdata.lats)
shape.lats<-lats2Shape(fdata.lats)
write.shapefile(shape.lats, file='/path/to/write/lats')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.