Displaying 1 result from an estimated 1 matches for "annualab".
Did you mean:
annual
2011 Jun 13
1
Count objects and print it into a new variable
..., the Area_Hecta contains numbers and the
InitialFir contains a date written like this: 24/05/1980
My end goal is to plot 2 plots, one with the summed area burned per year and
the other plot should show the number of fires happening per year.
I managed the first plot with the command aggregate.
annualAB.sum<-aggregate(yukon$Area_Hecta~yukon$Fire_Year, sum, data=yukon)
Now I am having troubles with the second plot. I created subsets for each
year and then used the length command..then I could take all those numbers
and put them in a new variable...
y1980 <- subset(yukon,Fire_Year=="198...