as.coord.data.frame: Attempt to convert a data.frame to a coord.data.frame

View source: R/fieldplot_s3.R

as.coord.data.frameR Documentation

Attempt to convert a data.frame to a coord.data.frame

Description

Attempt to convert a data.frame to a coord.data.frame

Usage

as.coord.data.frame(.data, id, x, y, ...)

Arguments

.data

A data.frame containing the data.

id

Column containing the individual identifier of each coordinate point.

x

Column containing the x-coordinate of each coordinate point.

y

Column containing the y-coordinate of each coordinate point.

...

Attribute columns which should be preserved.

Examples

coords <- data.frame(id1,x1,y1,d1,species1)
names(coords) <- c("id","x","y","diameter","species")
coords %>% as.coord.data.frame(id = id,x = x,y = y,diameter,species)

Silviculturalist/fieldcoordinate documentation built on April 17, 2022, 7:31 a.m.