toInterval: Collapse a dataset to a target time interval

Description Usage Arguments Value Examples

Description

Use this function to change the time between measurements of a DAM dataset (can only be used to increase the interval between measurements). When compressing data to the new set of timepoints, data is aggreagated by either mean or sum.

Usage

1
toInterval(obj, target, units, aggregateBy)

Arguments

obj

A valid DAM experiment object

target

What time interval should the resulting dataset be?

units

The units used by the "target" parameter. Can be one of the following: "seconds", "minutes", "hours", "days"

aggregateBy

When aggregating multiple timepoints' worth of data, should data be averaged or summed? Can be one of the following: "sum", "average"

Value

Returns a DAM S4 object, with measurments at the specified time interval.

Examples

1
2
3
getInterval(DAM_DD)
returnedDAM <- toInterval(DAM_DD, 1, units = "hours", aggregateBy = "sum")
getInterval(returnedDAM)

jstaf/actmon documentation built on May 20, 2019, 2:11 a.m.