comparison insect_phenology_model.R @ 75:392980f72514 draft

Uploaded
author greg
date Tue, 14 Nov 2017 14:21:25 -0500
parents 9843894544a8
children 8ca2b154e5cb
comparison
equal deleted inserted replaced
74:9843894544a8 75:392980f72514
31 temperature_data_frame <- read.csv(file=input_file, header=T, strip.white=TRUE, sep=",") 31 temperature_data_frame <- read.csv(file=input_file, header=T, strip.white=TRUE, sep=",")
32 if (num_rows == 6) { 32 if (num_rows == 6) {
33 # The input data has the following 6 columns: 33 # The input data has the following 6 columns:
34 # LATITUDE, LONGITUDE, DATE, DOY, TMIN, TMAX 34 # LATITUDE, LONGITUDE, DATE, DOY, TMIN, TMAX
35 # Add a column containing the daylight length for each day. 35 # Add a column containing the daylight length for each day.
36 temperature_data_frame <- add_daylight_length(latitude, temperature_data_frame, num_days) 36 temperature_data_frame <- add_daylight_length(latitude, temperature_data_frame, num_rows)
37 } 37 }
38 # Return the temperature_data_frame. 38 # Return the temperature_data_frame.
39 temperature_data_frame 39 temperature_data_frame
40 } 40 }
41 41