Add a trajectory field to the trajectory_fields table.
palms_add_trajectory_field(name, formula, after_conversion = FALSE)
name | The name of the field as a string. |
---|---|
formula | The formula as a string. Note that these formulas act on all
palmsplus points that are part of the same trip ( |
after_conversion | Logical. If |
If the trajectory_fields table is not present in the global environment, it will be created. If it already exists, the new field will be appended.
palms_add_trajectory_field("mot", "first(tripmot)")