Description Usage Arguments Value Author(s) Examples
Cut a 2d dataframe based on a point and a side length of a square.
1 |
x |
Longitude coordinates in decimal degrees for the reference point. |
y |
Latitude coordinates in decimal degrees for the reference point. |
data |
data.frame with the observations that will be cut. This data.frame should have at least two columns: x and y. |
df.x |
Name of the column in the dataframe which includes the x coordinates in decimal degrees for each observation. Default is set to "x". |
df.y |
Name of the column in the dataframe which includes the latitude coordinates in decimal degrees for each observation. |
side.length |
Side length in decimal degrees of the sorrunding box that will cut the spatial 2d dataframe. |
A subset of data.
Ricardo Ochoa Sosa
1 2 3 4 5 6 7 8 9 10 | my.data <-
read.table(header = TRUE, text = "
x y variable
-99.495 19.16 1
-99.490 19.16 5
-99.500 19.14 2
-99.490 19.15 10
")
cut_data(x = -99.490, y = 19.16, data = my.data, side.length = 0.01)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.