A a multimodal field to the multimodal_fields table
palms_add_multimodal_field(name, func)
name | The name of the field as a string. This field mulst be present in
the |
---|---|
func | The summary function to use as a string. This is normally either "sum" or "mean". |
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.
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")