as.coord.data.frame | R Documentation |
Attempt to convert a data.frame to a coord.data.frame
as.coord.data.frame(.data, id, x, y, ...)
.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. |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.