comparison insect_phenology_model.R @ 40:d8e6304dc5e4 draft

Uploaded
author greg
date Wed, 11 Apr 2018 13:05:44 -0400
parents 169c8180205a
children f4d683709b7f
comparison
equal deleted inserted replaced
39:169c8180205a 40:d8e6304dc5e4
223 # to Sundays which have no labels anyway. 223 # to Sundays which have no labels anyway.
224 if (last_tick==0) { 224 if (last_tick==0) {
225 return(length(ticks)+1); 225 return(length(ticks)+1);
226 } 226 }
227 last_saved_tick = ticks[[length(ticks)]]; 227 last_saved_tick = ticks[[length(ticks)]];
228 if (index-last_saved_tick<6) { 228 if (index-last_saved_tick<3) {
229 last_saved_month = month_labels[[length(month_labels)]]; 229 last_saved_month = month_labels[[length(month_labels)]];
230 if (last_saved_month=="") { 230 if (last_saved_month=="") {
231 # We're safe overwriting a tick 231 # We're safe overwriting a tick
232 # with no label (i.e., a Sunday tick). 232 # with no label (i.e., a Sunday tick).
233 return(length(ticks)); 233 return(length(ticks));