R analysis of energy consumption using weather and thermostat settings