Remove constant metrics and categorical metrics

remove.constant.categorical(dataset, metrics)

Arguments

dataset

a data frame for data

metrics

a characters or a vector of characters for independent variables

Examples

Data = loadDefectDataset('groovy-1_5_7','jira') remove.constant.categorical(dataset = Data$data, metrics = Data$indep)
#> [1] "CountDeclMethodPrivate" "AvgLineCode" #> [3] "CountLine" "MaxCyclomatic" #> [5] "CountDeclMethodDefault" "AvgEssential" #> [7] "CountDeclClassVariable" "SumCyclomaticStrict" #> [9] "AvgCyclomatic" "AvgLine" #> [11] "CountDeclClassMethod" "AvgLineComment" #> [13] "AvgCyclomaticModified" "CountDeclFunction" #> [15] "CountLineComment" "CountDeclClass" #> [17] "CountDeclMethod" "SumCyclomaticModified" #> [19] "CountLineCodeDecl" "CountDeclMethodProtected" #> [21] "CountDeclInstanceVariable" "MaxCyclomaticStrict" #> [23] "CountDeclMethodPublic" "CountLineCodeExe" #> [25] "SumCyclomatic" "SumEssential" #> [27] "CountStmtDecl" "CountLineCode" #> [29] "CountStmtExe" "RatioCommentToCode" #> [31] "CountLineBlank" "CountStmt" #> [33] "MaxCyclomaticModified" "CountSemicolon" #> [35] "AvgLineBlank" "CountDeclInstanceMethod" #> [37] "AvgCyclomaticStrict" "PercentLackOfCohesion" #> [39] "MaxInheritanceTree" "CountClassDerived" #> [41] "CountClassCoupled" "CountClassBase" #> [43] "CountInput_Max" "CountInput_Mean" #> [45] "CountInput_Min" "CountOutput_Max" #> [47] "CountOutput_Mean" "CountOutput_Min" #> [49] "CountPath_Max" "CountPath_Mean" #> [51] "CountPath_Min" "MaxNesting_Max" #> [53] "MaxNesting_Mean" "MaxNesting_Min" #> [55] "COMM" "ADEV" #> [57] "DDEV" "Added_lines" #> [59] "Del_lines" "OWN_LINE" #> [61] "OWN_COMMIT" "MINOR_COMMIT" #> [63] "MINOR_LINE" "MAJOR_COMMIT" #> [65] "MAJOR_LINE"