Skip to content

Commit

Permalink
get_SDA_coecoclass: fix bug with components with more than one ecosite
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Jan 9, 2024
1 parent 4573d36 commit d4f2955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get_SDA_coecoclass.R
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ get_SDA_coecoclass <- function(method = "None",
data.frame(
ecoclassid = not_rated_value,
ecoclassname = not_rated_value,
condpct_r = 100 - sum(condpct_r[nchar(compnames) > 0], na.rm = TRUE),
condpct_r = sum(condpct_r[nchar(unassigned) > 0 & !unassigned %in% compnames], na.rm = TRUE),
compnames = paste0(unassigned[nchar(unassigned) > 0 & !unassigned %in% compnames],
collapse = ",")
)
Expand Down

0 comments on commit d4f2955

Please sign in to comment.