A a multimodal field to the multimodal_fields table

palms_add_multimodal_field(name, func)

Arguments

name

The name of the field as a string. This field mulst be present in the trajectories dataset. This also accepts a vector of names.

func

The summary function to use as a string. This is normally either "sum" or "mean".

Value

If the multimodal_fields table is not present in the global environment, it will be created. If it already exists, the new field will be appended.

Examples

palms_add_multimodal_field("mvpa", "sum") palms_add_multimodal_field("speed", "mean") # A vector of names using the same summary function palms_add_multimodal_field(c("sedentary", "light", "moderate", "duration"), "sum")