align_data: Align a timeseries to the start of a period.

View source: R/align_data.R

align_dataR Documentation

Align a timeseries to the start of a period.

Description

This function serves as a precursor to create_dataframe().

Usage

align_data(data = NULL, original_alignment = NULL)

Arguments

data

A dataframe with a timestamp and a variable. Column names: "time" and "data".

original_alignment

A string indicating the original alignment of the input data. Options: 'start', 'end'.

Value

a dataframe with data aligned to the start of the period


kW-Labs/nmecr documentation built on May 6, 2024, 9:28 p.m.