Learn R Programming

kobe (version 1.3.2)

kobeFreq: kobeFreq

Description

Calculates the frequency of an obervation in a 2D cell

Usage

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

Run this code
## Not run: 
#    y=rnorm(20)
#    x=rnorm(20)
#    kobeFreq(x,y)## End(Not run)

Run the code above in your browser using DataLab