Description Usage Arguments Value Author(s)
View source: R/strata_coordinates.R
This function takes a data.frame
, and a stratum and makes a data frame
consisting of Stratum, Latitude, and Longitude for each stratum
1 2 3 4 5 6 7 8 9 | strata_coordinates(
x,
stratum = "Population",
longitude = "Longitude",
latitude = "Latitude",
as.SpatialPoints = FALSE,
sort.output = FALSE,
single.stratum = TRUE
)
|
x |
A |
stratum |
The name of the stratum to partition on (default="Population"). |
longitude |
The column name of the longitude |
latitude |
The column name of the latitude |
as.SpatialPoints |
A flag indicating what kind of coordinates to return
should be turned into a SpatialPoints object (TRUE) or as a |
sort.output |
A flag indicating if the results should be sorted alphabetically (default=FALSE) |
single.stratum |
A flag to indicate that you only want one entry per stratum (for collapsing points within strata, Default=TRUE). |
A data frame, with Stratum Latitude and Longitude, summarized by center of each stratum.
Rodney J. Dyer rjdyer@vcu.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.