Build trajectories (trips) from the palmsplus dataset. This returns a sf data.frame with LINESTRING geometry. Three columns are returned by default (identifier, tripnumber, and geometry). Additional columns can be specified with palms_add_trajectory_field and palms_add_trajectory_location.

palms_build_trajectories(data)

Arguments

data

The palmsplus data obtained from palms_build_palmsplus.

Value

A table of individual trips represented as LINESTRING geometry.

Examples

data("palms") palms_remove_tables() palms_add_field("mvpa", "activityintensity > 1", TRUE) palmsplus <- palms_build_palmsplus(palms)
#> [1/1] Computed palmsplus for: BC0627
# Just with default columns trajectories <- palms_build_trajectories(palmsplus) # Adding new fields before building palms_add_trajectory_field("mot", "first(tripmot)") palms_add_trajectory_field("mvpa", "sum(mvpa)") trajectories <- palms_build_trajectories(palmsplus)