lats2Shape: Converting a Table of Latitudes and Longitudes to a Shapefile

Description Usage Arguments Details Value Author(s) See Also Examples

Description

A helper function to convert a table of latitudes and longitudes (and associated attributes, if applicable) into a shapefile

Usage

1
lats2Shape(lats)

Arguments

lats

a table with a latitude and longitude column respectively with associated attributes

Details

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.

Value

A shapefile object which can be written to file using write.shapefile

Author(s)

Matthew Vavrek

See Also

msn2Shape

Examples

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)

fossil documentation built on March 23, 2020, 5:06 p.m.