freqprof: Convert data to moving sum/prop.

Description Usage Arguments Value Examples

View source: R/ShapeData.R

Description

Convert data to moving sum/prop.

Usage

1
2
freqprof(data.behavior, window = round(0.25 * nrow(data.behavior)),
  step = 1, resolution = 1, which = c("sum", "proportion"))

Arguments

data.behavior

a data.frame containing occurrence/nonoccurrence data in binary (0/1) format

window

the window length to use in computing a moving sum or proportion

step

the number of bins of which the data will be translated.

resolution

the number of points contained in a bin

which

giving the moving function to apply: sum or proportion

Value

The data in a freqprof object.

Examples

1
2

AIBRT/FreqProf documentation built on May 5, 2019, 11:30 a.m.