freq | R Documentation |
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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.