Description Usage Arguments Value Examples
View source: R/GeneralTransposingFunctions.R
General Transpose function
1 2 3 4 5 6 | Generaltransposefunction(
tableA,
id1,
id2,
origin = deparse(substitute(tableA))
)
|
id1 |
A list of variables (rows) |
id2 |
A list of variables (columns of the transposed table), id2 can contain as a last element the strint "rn", if the variable rn is an index for the cells formed by the variables listed first in id2 |
table |
A dataframe |
A list: first element of the list is a dataframe, the transposed version of the orioginal table. Second element is a key to allow back transposition
1 2 3 4 | tableA<-sampledata(TRUE)
id1=c("id1a","id1b")
id2=c("id2a","id2b")
TtableA<-Generaltransposefunction(tableA,id1,id2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.