Skip to content

Commit

Permalink
Revise the name of the function
Browse files Browse the repository at this point in the history
  • Loading branch information
Jirayus committed Mar 26, 2019
1 parent 16baa39 commit 1ca3a59
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

S3method(plot,summarizedvc)
export(AutoSpearman)
export(check.constant.categorical)
export(fit)
export(get.importance)
export(loadDefectDataset)
export(performance.calculation)
export(plotVarClus)
export(remove.constant.categorical)
export(single.fit)
export(stepwise.vif)
import(dendextend)
Expand Down
4 changes: 2 additions & 2 deletions R/AutoSpearman.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ AutoSpearman <-
spearman.threshold = 0.7,
vif.threshold = 5,
verbose = F) {
# Check constant metrics and categorical metrics
metrics <- check.constant.categorical(dataset, metrics)
# Remove constant metrics and categorical metrics
metrics <- remove.constant.categorical(dataset, metrics)


spearman.metrics <-
Expand Down
4 changes: 2 additions & 2 deletions R/get.vc.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

get.vc <- function(dataset, metrics, similarity = 'spearman', varclus.threshold = 0.7){

# Check constant metrics and categorical metrics
metrics <- check.constant.categorical(dataset, metrics)
# remove constant metrics and categorical metrics
metrics <- remove.constant.categorical(dataset, metrics)

f <- as.formula(paste("~", paste(metrics, collapse = " + ")))
vc <-
Expand Down
4 changes: 2 additions & 2 deletions R/get.vc.correlation.groups.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

get.vc.correlation.groups <- function(dataset, metrics, similarity = 'spearman', varclus.threshold = 0.7){

# Check constant metrics and categorical metrics
metrics <- check.constant.categorical(dataset, metrics)
# Remove constant metrics and categorical metrics
metrics <- remove.constant.categorical(dataset, metrics)

f <- as.formula(paste("~", paste(metrics, collapse = " + ")))
vc <-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#' Check for constant metrics and categorical metrics
#' Remove constant metrics and categorical metrics
#'
#' @param dataset a data frame for data
#' @param metrics a characters or a vector of characters for independent variables
#' @keywords constant categorical
#' @examples
#' Data = loadDefectDataset('groovy-1_5_7','jira')
#' check.constant.categorical(dataset = Data$data, metrics = Data$indep)
#' remove.constant.categorical(dataset = Data$data, metrics = Data$indep)
#' @export
check.constant.categorical <-
remove.constant.categorical <-
function(dataset,
metrics) {
# Check constant metrics
Expand Down
22 changes: 0 additions & 22 deletions man/check.constant.categorical.Rd

This file was deleted.

22 changes: 22 additions & 0 deletions man/remove.constant.categorical.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1ca3a59

Please sign in to comment.