addGroupByType: Group Data By Time Agrupation and Sum Any Column Value

Description Usage Arguments Details Examples

View source: R/myModules.R

Description

This function belongs to script server.R and is used to group Data Frames for any Time Agrupation and Sum Any Column Values, This function is very useful because is possible group by one or more columns.

Usage

1
addGroupByType(data, groupType, dateCol, periodCol, valueCol, ...)

Arguments

data

Data Frame

groupType

Time Agrupation

dateCol

Date Column Number were is the Date of the Data Frame

periodCol

Period Column Number were is the Period of the Data Frame in case that it be with 'Horario' Time Agrupation

valueCol

Value Column Number were is the Value of the Data Frame to be summarized

...

After valueCol Param can be referenciated one or more column numbers to be grouped

Details

This function belongs to server.R script to easily realize operations to group data by any time agrupation

Examples

1
addGroupByType(trmDiaria, "Mensual", 1, 0, 2, "FECHA")

sflorezp/modulesRReport documentation built on May 14, 2019, 9 a.m.