freq.Rd
Calculates the frequency of an obervation in a 2D cell
freq(x, y, x.n = 11, y.n = x.n, na.rm = FALSE)
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 |
a data.frame
frequency by bin
# NOT RUN { y=rnorm(20) x=rnorm(20) freq(x,y) # }