Description Usage Arguments Value Methods (by generic) Values Note Examples
Frequency
is a custom wrapper (mostly) for
hist
. It simplifies input to only data and bin
width. Bins are always left included but not right, as in `[a, b)`
.
Frequency
removes NA
values (with warning) prior to binning.
1 2 3 4 5 6 7 |
x |
A postive numeric vector to be binned according to |
binWidth |
A numeric scalar (integer) defining the bin size. |
xRange |
A numeric vector of length 2, supplying 'from' and 'to' for customized x-axis range. Default NULL. Recommended for consistent comparison of multiple histograms. |
object |
Object of class |
... |
Passed on to other methods. |
A list (of class Frequency
& class
hist
) containing proportion & count frequencies.
summary
: summary
method (See notes).
print
: print
method (See notes).
see hist
.
number of NA values removed
.
deparsed name of x
, replaces
hist
xname
value passed to binWidth
function when run will yield descriptive statistics of
x
Method summary
written for class Frequency. Returns dataframe
with fields Bin, Count, Density, Proportion. Print method also writted for
class Frequency.
1 | #Frequency(trammel_catch[["FL"]], binWidth = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.