myT | R Documentation |
Transpose data. Make the first column of original data be the colnames of the new data and the colnames of original data be either the rownames or the 1st column of new data (depends on output type)
myT(data_dt, newName_v = NA, toClass_v = "numeric", outType_v = "dt")
data_dt |
data to transpose |
newName_v |
name for new 1st column of transposed data (only used if dt is output type) |
toClass_v |
which class to convert output to (only 'numeric' and 'character' work right now, NULL to avoid.) |
outType_v |
which type of object to return (dt for data.table, df for data.frame, mat for matrix) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.