This function allow you to calcul data from a simple selection to add a description. The vector_calc name can be missleading.

vector_calc(model, tag_to_create, func_to_apply, wanted_tag, start, end)

Arguments

model

An AnalysR model

tag_to_create

Label to write in description table

func_to_apply

A function to apply to the vector selected.

wanted_tag

The name of the measures we want to work on. (not mandatory)

start

A date marking the beginning of the studied time period (not mandatory)

end

A date marking the end of the studied time period. (not mandatory)

Details

Setting a value to start, end, and wanted_tag would make the vector_calc function on measure table, almost like create_feature.

If you do not provide a start/end, vector_calc would try to work on the selection table.

The result is always in the description table.