View source: R/bin.running.before.R
bin.running.before | R Documentation |
Aggregate Wheel Running Data Prior to a Bin
bin.running.before(bin.size, bins.out, bin.start, reverse = FALSE, ...)
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 |
Aggregate wheel running data prior to a specfic bin (i.e., computer interval number).
An object of class running
. See bin.running
for additional details.
Kevin Middleton (middletonk@missouri.edu)
bin.running
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.