diff --git a/src/model_fitting/abundance_model.R b/src/model_fitting/abundance_model.R index f340d08b520071f7447325df7ac5dea650533eab..701aab146b17ff2ddba521cb37672ebf9b517292 100644 --- a/src/model_fitting/abundance_model.R +++ b/src/model_fitting/abundance_model.R @@ -49,7 +49,7 @@ option_list <- list ( help = "iteration of excluding the given percent randomly", metavar = "1"), make_option("--exclude-grid-random-percent", - dest = "exclude_grid_rand_percent", + dest = "exclude_grid_rand_perc", type = "integer", default = NA, help = "percemt cells to be excluded", @@ -81,7 +81,7 @@ if (!is.na(options$exclude_year) && !(options$exclude_year %in% exclude_year_pos -if (!is.na(options$exclude_grid_rand) & is.na(options$exclude_grid_rand_percent)){ +if (!is.na(options$exclude_grid_rand) & is.na(options$exclude_grid_rand_perc)){ stop(paste("exclude-grid-random needs the percent cells that have to be excluded (exclude-grid-random-percent)"))}