You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (0>threshold|1<threshold) stop("Threshold must be between 0 and 1.")
65
+
if (0>threshold|1<threshold) {
66
+
stop("Threshold must be between 0 and 1.")
67
+
}
66
68
67
69
# ensure no column names contain x
68
-
if (any(grepl(x, colnames(full_data)))) stop(paste0("The prefix for new variable names, ", x, ", is contained within existing data column names. Please choose a different prefix to avoid errors."))
70
+
if (any(grepl(x, colnames(full_data)))) {
71
+
stop(paste0("The prefix for new variable names, ", x, ", is contained within existing data column names. Please choose a different prefix to avoid errors."))
72
+
}
69
73
70
74
# ensure data frame structure
71
75
full_data<- as.data.frame(full_data)
72
76
73
77
# if < cluster_size features, call regular partition
74
78
if (ncol(full_data) <cluster_size) {
75
79
message(paste0("Using `partition()` since there are < ", cluster_size, "features."))
0 commit comments