Learn R Programming

timefully (version 0.1.0)

get_week_total: Summarise dataframe with weekly total column values

Description

Converts the numeric columns of a time-series data frame to total values per week (sum). Note that if the input values are in power units (e.g., kW), the output values will be in energy units (e.g., kWh).

Usage

get_week_total(dtf)

Value

tibble

Arguments

dtf

data.frame or tibble, first column of name datetime being of class datetime and rest of columns being numeric

Examples

Run this code
get_week_total(dtf[1:100, ])

Run the code above in your browser using DataLab