changeset 47:58a823b1d940 draft

Uploaded
author greg
date Mon, 23 Apr 2018 13:23:42 -0400
parents 0791cca1fc5c
children 99e1c1300fcd
files insect_phenology_model.R
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/insect_phenology_model.R	Mon Apr 23 10:33:11 2018 -0400
+++ b/insect_phenology_model.R	Mon Apr 23 13:23:42 2018 -0400
@@ -402,7 +402,7 @@
         norm_data_frame = norm_data_frame[-c(60),];
     }
     # Set the location to be the station name if the user elected no to enter it.
-    if (is.null(location) | location=="") {
+    if (is.null(location) | length(location)==0) {
         location = norm_data_frame$NAME[1];
     }
     if (is.null(input_ytd)) {