Description Usage Arguments Details Value Author(s) References Examples
Construct a two-way frequency table (matrix) by reforming and aggregating counts into bins.
1 |
trn |
An array or data frame with two or three columns (either from, to or from, to, count). Each row should at least designate the from-group & to-group (count is optional).
| ||||||||||||
fr.col |
The column number of | ||||||||||||
to.col |
The column number of | ||||||||||||
cnt.col |
(optional) The column number of | ||||||||||||
brk |
(optional) Either a value indicating the number of bins to
aggregate |
xt requires an array or data frame of numeric values and returns a two-way table of frequencies that can be optionally grouped into bins of a specified range.
Returns a two-way table of frequencies in the form:
Fr | ||||
40 | 38 | 37 | ... | |
To | 89 | 89 | 87 | ... |
75 | 74 | 89 | ... | |
... | ... | ... | ... |
Bjorn J. Brooks, Lars Y. Pomara, Danny C. Lee
PAPER TITLE.
1 2 3 4 5 6 | data(transitions) # Load example data
b <- brkpts(transitions$phenofr, # 10 probabilistically
10) # equivalent breakpoints
m <- xt(transitions, fr.col=2, # Construct a two-way table
to.col=3, cnt.col=4,
brk=b)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.