results <- do.call(rbind, lapply(1:nrow(combinations), function(i) { curcombo <-…
- User
results <- do.call(rbind, lapply(1:nrow(combinations), function(i) { cur_combo <- combinations[i, ] variable <- cur_comboVariable[[1]] data_diff <- ifelse(cur_comboTrend) resultVarName <- cur_combo VarName resultType <- cur_comboTrend return(result) }))
- Assistant
This error occurred because R cannot find an object named 'combinations' in the current environment.
You need to make sure that the object 'combinations' has been created and is accessible in the current environment before running this code.
You can check if the object exists by calling its name in the console. If R returns an error or message that the object is not found, you may need to create it first or check if it was created in a different environment.