R unexpected error when paste0 at custom condition function
R code conditions2 function return an Error: Unexpected “=” at ” “df2$AETOXGR_STD %in% c(3,4,5)” = 3, paste0(“df2$AETOXGR_STD %in% c(3,4,5) & (“, paste(sapply(ae_caus_columns, function(col) paste0(“toupper(df2$”, col, “) == ‘RELATED'”)), collapse = ” | “), “)”) =” When I run paste of this line independly, it looks good to me though.