bin.running.before: Aggregate Wheel Running Data Prior to a Bin

View source: R/bin.running.before.R

bin.running.beforeR Documentation

Aggregate Wheel Running Data Prior to a Bin

Description

Aggregate Wheel Running Data Prior to a Bin

Usage

bin.running.before(bin.size, bins.out, bin.start, reverse = FALSE, ...)

Arguments

bin.size

Size of bin (minutes)

bins.out

Number of bins to return

bin.start

Bin (interval) to start

reverse

Should the resulting dat be reversed before being returned? Reversed data will go from most recent to oldest.

...

Additional parameters passed to bin.running()

Details

Aggregate wheel running data prior to a specfic bin (i.e., computer interval number).

Value

An object of class running. See bin.running for additional details.

Author(s)

Kevin Middleton (middletonk@missouri.edu)

See Also

bin.running

Examples


# Load the 2006-11-05 running data for computer A
data(A061105)

# Aggregate running data into 10 * 10 minute bins starting
# at interval 600
A <- bin.running.before(whldat = A061105, computer = "A",
                        bin.start = 600,
                        bin.size = 10, bins.out = 10)
A$times
A$run
# Plot aggregated running data for wheel number 1.
plot(A, whlnum = 1, whichplot = "run")


kmiddleton/binning documentation built on June 14, 2025, 11:02 a.m.