R-functions for electricity analysis - EMAC Group