aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--R/build_scenarios.R4
1 files changed, 2 insertions, 2 deletions
diff --git a/R/build_scenarios.R b/R/build_scenarios.R
index c877be0b..7d55b22c 100644
--- a/R/build_scenarios.R
+++ b/R/build_scenarios.R
@@ -6,13 +6,13 @@ if(.Platform$OS.type == "unix"){
root.dir <- "//WDSENTINEL/share/CorpCDOs"
}
-if(len(args) >= 1){
+if(length(args) >= 1){
workdate <- args[1]
}else{
workdate <- Sys.Date()
}
-if(len(args) >=2){
+if(length(args) >=2){
dealnames <- args[2:len(args)]
}else{
dealnames <- read.table(file.path(root.dir, "scripts", "scenarios.txt"))$V1