comparison insect_phenology_model.R @ 47:58a823b1d940 draft

Uploaded
author greg
date Mon, 23 Apr 2018 13:23:42 -0400
parents 0791cca1fc5c
children 1b6864c5b50a
comparison
equal deleted inserted replaced
46:0791cca1fc5c 47:58a823b1d940
400 # the data, so delete that row if we're not in a leap year. 400 # the data, so delete that row if we're not in a leap year.
401 if (!is_leap_year) { 401 if (!is_leap_year) {
402 norm_data_frame = norm_data_frame[-c(60),]; 402 norm_data_frame = norm_data_frame[-c(60),];
403 } 403 }
404 # Set the location to be the station name if the user elected no to enter it. 404 # Set the location to be the station name if the user elected no to enter it.
405 if (is.null(location) | location=="") { 405 if (is.null(location) | length(location)==0) {
406 location = norm_data_frame$NAME[1]; 406 location = norm_data_frame$NAME[1];
407 } 407 }
408 if (is.null(input_ytd)) { 408 if (is.null(input_ytd)) {
409 # Convert the 30 year normals data to the year-to-date format. 409 # Convert the 30 year normals data to the year-to-date format.
410 for (i in 1:total_days) { 410 for (i in 1:total_days) {