Displaying 1 result from an estimated 1 matches for "dryseasonmonth".
Did you mean:
dryseasonmonths
2009 Apr 09
2
numbers not behaving as expected
...l.ave")
which contains three columns of parameters year, month and AveRain.
I need to subset the data.frame by months such that
DrySeaonMonths are 1,2,3,4, 11, and 12 or Jan - April, November and
December
and
WetSeasonMonths are 5:10 or May-October.
I'm using the following code:
> DrySeasonMonths <- Cell.ave[Cell.ave$month < "5" & Cell.ave$month !=
"10",]
> table(DrySeasonMonth$month)
1 2 3 4 11 12
36 36 36 36 36 36
# this is expected since the data is for 36 years
WetSeasonMonths <- Cell.ave[Cell.ave$month >= "5&quo...