Skip to content

Commit

Permalink
get_SDA_coecoclass: integer aggregate site percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Jan 9, 2024
1 parent 59dbe0b commit 6df97b9
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 @@ -261,7 +261,7 @@ get_SDA_coecoclass <- function(method = "None",
siten = ifelse(isTRUE(is.na(x$ecoclassid[i])), not_rated_value, x$ecoclassid[i]),
sitenname = ifelse(isTRUE(is.na(x$ecoclassname[i])), not_rated_value, x$ecoclassname[i]),
sitencompname = ifelse(isTRUE(is.na(x$compnames[i])), NA_character_, x$compnames[i]),
sitenpct_r = ifelse(isTRUE(is.na(x$condpct_r[i])), 0, x$condpct_r[i]),
sitenpct_r = ifelse(isTRUE(is.na(x$condpct_r[i])), 0L, x$condpct_r[i]),
sitenlink = ifelse(
isTRUE(x$ecoclassid[i] == not_rated_value | is.na(x$ecoclassid[i])),
NA_character_,
Expand Down

0 comments on commit 6df97b9

Please sign in to comment.