View source: R/DataConversionFunctions.R
Make categorical representation of the numerical values of a column in a data frame and produce a matrix with the derived categorical tags as columns and values of a specified data column as rows.
1 2 3 4 5 6 7 8 9 | MakeMatrixByColumnPartition(
data,
colNameForRows,
colNameForColumns,
breaks = 10,
leftOverlap = NULL,
rightOverlap = NULL,
colnamesPrefix = ""
)
|
data |
a data frame |
colNameForRows |
a column name in data for the rows of the result matrix |
colNameForColumns |
a column name in data for the columns of the result matrix |
breaks |
the points over which the breaking of |
leftOverlap |
vector of weights for the neighboring columns to left |
rightOverlap |
vector of weights for the neighboring columns to right |
colnamesPrefix |
prefix for the columns names |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.