Learn R Programming

biogeo (version 1.0)

points2shape: Save data to a points shape file

Description

Save data to a points shape file with a geographic projection

Usage

points2shape(dat, x, y, fn)

Arguments

dat
a dataframe containing x- and y-coordinates and any other data
x
name of x-coordinates column in dat
y
name of y-coordinates column in dat
fn
the name of the file to be create (should have a .shp extension)

Value

See Also

pointsworld

Examples

Run this code
points2shape(dat,"x","y",fn="pointshape.shp")

Run the code above in your browser using DataLab