Skip to content

Commit 2c34473

Browse files
committed
2 parents 3a7239c + 0a62db6 commit 2c34473

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

R/CARTBEQ_calc_combiner.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ CARTBEQ_calc_combiner <- function(df,
370370
}
371371
}
372372
#Once the appropriate calculation is found and used, then checks are performed
373-
if (!is.na(recalculated_CARTBEQmcg_std) & recalculated_CARTBEQmcg_std < 0) {
373+
if (!is.na(recalculated_CARTBEQmcg_std) && recalculated_CARTBEQmcg_std < 0) {
374374
#this checks to see if the value is less than zero, and resets it to zero if so, with a recorded comment if comments are on
375375
recalculated_CARTBEQmcg_std <- 0
376376
if (comment == TRUE) {
@@ -385,7 +385,7 @@ CARTBEQ_calc_combiner <- function(df,
385385
if (!missing(comment_col)) {
386386
comment_list <-
387387
c(comment_list,
388-
paste0(comment_col_value, " - ", recorded_comment)) #this adds the recorded comments to the comment column with the existing comments from input
388+
paste0(comment_col_value, "; ", recorded_comment)) #this adds the recorded comments to the comment column with the existing comments from input
389389
} else {
390390
comment_list <-
391391
c(comment_list, recorded_comment) #this adds the recorded comments to the comment column

0 commit comments

Comments
 (0)