freq: freq

View source: R/kobe-funcs.R

freqR Documentation

freq

Description

Calculates the frequency of an obervation in a 2D cell

Usage

freq(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

## Not run: 
   y=rnorm(20)
   x=rnorm(20)
   freq(x,y)
## End(Not run)

laurieKell/kobe documentation built on Sept. 9, 2023, 9:47 p.m.