changeset 76:8ca2b154e5cb draft

Uploaded
author greg
date Tue, 14 Nov 2017 14:33:46 -0500
parents 392980f72514
children aea954380d99
files insect_phenology_model.R
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/insect_phenology_model.R	Tue Nov 14 14:21:25 2017 -0500
+++ b/insect_phenology_model.R	Tue Nov 14 14:33:46 2017 -0500
@@ -29,7 +29,7 @@
 parse_input_data = function(input_file, num_rows, num_columns) {
     # Read in the input temperature datafile into a data frame.
     temperature_data_frame <- read.csv(file=input_file, header=T, strip.white=TRUE, sep=",")
-    if (num_rows == 6) {
+    if (num_columns == 6) {
         # The input data has the following 6 columns:
         # LATITUDE, LONGITUDE, DATE, DOY, TMIN, TMAX
         # Add a column containing the daylight length for each day.