Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
2 answers
968 views

Sampling points in R with both distance constraint and group

I have a spatial point data frame with categorical variable as a column named "type", I would like to draw a random sample from these points (let's say 100 points) with maximum and minimum ...
Es_a's user avatar
  • 606
0 votes
0 answers
66 views

How to make analyzeGPS distanceGPS group by trip?

I have a dataset with id, lat, lon and time, where each trip has a unique id. When I try to use mutate with the distanceGPS function in the AnalyzeGPS package and group by trip using this code: gps%&...
pochi's user avatar
  • 11
6 votes
1 answer
3k views

r - Can dplyr::group_by work with sf::st_intersects

Trying to combine dplyr::group_by and sf::st_intersects to see which of the objects within groups in a sf dataframe are intersecting with each other but in the end all objects are compared with all ...
adl's user avatar
  • 510
5 votes
0 answers
2k views

Clustering of events within a space-time window (R)

I am relatively new to clustering methods and am trying to determine the best method for clustering (or merely grouping) events that fall within a space-time window using preferably R. My goal is to ...
Phil's user avatar
  • 85
1 vote
0 answers
86 views

How to group different values of a variable so that they plot with same shape?

I have a table with two columns of number X and Y, and one column of strings called crystals. crystals A A B C B D B C Using ggplot2, how can I make a scatter plot of X versus Y with two ...
céline mandon's user avatar
18 votes
1 answer
8k views

Clustering geographical data based on point location and associated point values

Given data points with longitude, latitude, and a third property value of this point. How can I cluster points into groups (geographical sub-regions) based on the property value? I searched by google ...
Excalibur's user avatar
  • 281