lats2Shape {fossil}R Documentation

Converting a Table of Latitudes and Longitudes to a Shapefile

Description

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

Usage

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

## 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)

[Package fossil version 0.4.0 Index]