Add an aggregation field to the palmsplus_fields table.
palms_add_field(name, formula, domain_field = FALSE)
name | The name of the field as a string. |
---|---|
formula | The formula as a string. The formula can contain other fields previously specified. |
domain_field | Logical. If |
If the palmsplus_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_field("pedestrian", "tripmot == 1") palms_add_field("moving", "pedestrian | tripmot == 2") #notice this contains previous field