This function convert a GeoPressureR path to a data.frame which can be read in movevis for instance.
Arguments
- pam
pam logger dataset list with
pam$sta
computed (seepam_sta
)- path
data.frame containtings the path(s) of the bird with column
lat
,lon
andsta_id
at least. Path can be generated withgeopressure_map2path
,graph_simulation
,geopressureviz
.
Details
The function basically duplicate location position at the start and end time of each stationary period.
Examples
pam <- pam_read(
pathname = system.file("extdata/0_PAM/18LX", package = "GeoPressureR")
)
pam <- trainset_read(pam,
pathname = system.file("extdata/1_pressure/labels", package = "GeoPressureR")
)
pam <- pam_sta(pam)
pressure_prob_1 <- readRDS(system.file("extdata/1_pressure/", "18LX_pressure_prob_1.rda",
package = "GeoPressureR"
))
path <- geopressure_map2path(list(pressure_prob_1))
path2df(pam, path)
#> lon lat track_id time
#> 1 17.125 48.875 18LX 2017-07-27 00:00:00
#> 2 17.125 48.875 18LX 2017-08-04 19:50:00