Skip to content
Snippets Groups Projects
Commit 89a4087d authored by Maria Voigt's avatar Maria Voigt
Browse files

fixing bug in either/or statement for making results dataframe

parent 92e4b893
Branches
No related tags found
No related merge requests found
......@@ -384,7 +384,7 @@ if(is_verbose){print(paste("8. Start running models", Sys.time()))}
results_res <- foreach(i = 1:nrow(all_model_terms),
.combine = rbind) %dopar%{
# make results dataframe
if (is.na(exclude_year) | is.na(exclude_grid)){
if (is.na(exclude_year) & is.na(exclude_grid)){
result <- as.data.frame(matrix(NA, ncol = 3 *
length(model_terms) + 5,
nrow = 1))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment