This function allows you to group photos, by time or a combination of time and location.
If date_time_cut
values are taken (times in which to break the photos)
time alone will be used to break-up the photos.
If not, you can simply request a number of breaks with n_groups
.
photo_group(photo, n_groups = 3, date_time_cut = NULL, cluster_string = "Latitude$|Longitude$|date_time")
photo | An sf object created by |
---|---|
n_groups | The number of groups if |
date_time_cut | Times provided to break the photos |
cluster_string | Text string used to select variables used for clustering |
#> [1] "1" "1" "2" "2" "2"#> Min. 1st Qu. Median #> "2019-05-23 12:06:05" "2019-05-23 13:50:34" "2019-05-24 10:45:45" #> Mean 3rd Qu. Max. #> "2019-05-24 03:59:53" "2019-05-24 11:07:20" "2019-05-24 20:09:45"