Description Usage Arguments Value Author(s)
View source: R/strata_centroids.R
This function partitions the data.frame or tibble into subgroups and returns the names and centroids of the strata.
1 2 3 | strata_centroids(data, stratum = "Population", longitude = "Longitude",
latitude = "Latitude", mode = c("data.frame", "SpatialPoints",
"sf")[1])
|
data |
A data frame object with coordinates and a column to be used as stratum designations. |
stratum |
The name of the column to use as the partition. |
longitude |
The name of the column with the X-coordinate (default = Longitude) |
latitude |
The name of the column with the Y-coordinate (default = Latitude) |
mode |
The format of the returned object as a data.frame (default), spatialPoints or sf object. |
A data.frame object with strata and latitude and longitude
Rodney J. Dyer <rjdyer@vcu.edu>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.