Skip to content

Commit

Permalink
only calculate cluster stats if a single pollutant
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarslaw committed May 13, 2024
1 parent 5a69a59 commit 13572b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/polarCluster.R
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ polarCluster <-
var_mean <- paste0("mean_", pollutant)
var_percent <- paste0(pollutant, "_percent")

if (length(n.clusters) == 1L) {
if (length(n.clusters) == 1L && length(pollutant) == 1L) {

clust_stats <-
out_data %>%
Expand Down

0 comments on commit 13572b4

Please sign in to comment.