kobeFreq: kobeFreq

Description Usage Arguments Value Examples

View source: R/kobe-funcs.R

Description

Calculates the frequency of an obervation in a 2D cell

Usage

1
kobeFreq(x, y, x.n = 11, y.n = x.n, na.rm = FALSE)

Arguments

x

a vector holding a time series

y

a vector holding a time series

x.n

a numeric vector giving number of bins

y.n

a numeric vector giving number of bins

na.rm

logical; if true, any NA and NaN's are removed from x before calculations

Value

a data.frame frequency by bin

Examples

1
2
3
4
5
## Not run: 
   y=rnorm(20)
   x=rnorm(20)
   kobeFreq(x,y)
## End(Not run)

kobe documentation built on May 30, 2017, 12:15 a.m.