utilsDetailedSRDNoChars {rSRD} | R Documentation |
utilsDetailedSRDNoChars
Description
Detailed calculation of the SRD values including the computation of the ranking transformation. Unless there is a column specified with referenceCol the last column will always taken as the reference. In this variant unused variables will not be converted to chars.
Usage
utilsDetailedSRDNoChars(
df,
referenceCol,
createRefCol = function() {
}
)
Arguments
df |
A DataFrame. |
referenceCol |
Optional. A string that contains a column of |
createRefCol |
Optional. Can be max, min, median, mean. Creates a new Column based on the existing |
Value
Returns a new DataFrame that shows the detailed SRD computation (ranking transformation and distance calculation). A newly added row contains the SRD values (displayed without normalization).
Author(s)
Ali Tugay Sen
Examples
SRDInput <- data.frame(
A=c(32, 52, 44, 44, 47),
B=c(73, 75, 65, 76, 70),
C=c(60, 59, 57, 55, 60),
D=c(35, 24, 44, 83, 47),
E=c(41, 52, 46, 50, 65))
rSRD::utilsDetailedSRDNoChars(SRDInput)
[Package rSRD version 0.1.7 Index]