# HG changeset patch # User greg # Date 1524504222 14400 # Node ID 58a823b1d940756caf7cbd96d9b9a9719acb7db8 # Parent 0791cca1fc5c0c1457eb59369510281fa71dc461 Uploaded diff -r 0791cca1fc5c -r 58a823b1d940 insect_phenology_model.R --- 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)) {