Skip to contents

Prepare data for use with dust_unfilter_create or dust_filter_create. You do not have to use this function if you name your data.frame with our standard column names (i.e., time column containing the time) as it will be called within the filter functions directly. However, you can use this to validate your data separately or to use different columns than the defaults.

Usage

dust_filter_data(data, time = NULL, group = NULL)

Arguments

data

A data.frame containing time and data to fit. By default we expect a column time (or one with the name given as the argument time) and one or more columns of data to fit to.

time

Optional name of a column within data to use for time.

group

Optional name of a column within data to use for groups

Value

A data.frame, with the addition of the class attribute dust_filter_data; once created you should not modify this object.