View source: R/PLMIXfunctions.R
rank_ord_switch | R Documentation |
Convert the format of the input dataset from orderings to rankings and vice versa.
rank_ord_switch(data, format_input, nranked = NULL)
data |
Numeric |
format_input |
Character string indicating the format of the |
nranked |
Optional numeric vector of length |
Numeric N
\times
K
data matrix of partial sequences with inverse format.
Cristina Mollica and Luca Tardella
## From orderings to rankings for the Dublin West dataset
data(d_dublinwest)
head(d_dublinwest)
rank_ord_switch(data=head(d_dublinwest), format_input="ordering")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.