Hi,
If I understood your question, maybe sth like this:
AnnualFireCount<-aggregate(ANY.OF.YOUR.VARIABLES~Fire_Year, length,
data=yukon)
you can put any variable name in your dataframe (eg Fire_Year) in the place
of ANY.OF.YOUR.VARIABLES as the function only counts them.
On Tue, Jun 14, 2011 at
Also this one:
AnnualFireCount2 <- as.data.frame(table(yukon$Fire_Year))
names(AnnualFireCount2) < c("Year","Fires")
On Tue, Jun 14, 2011 at 9:01 AM, Majid Einian wrote:
> Hi,
>
> If I understood your question, maybe sth like this:
>
> AnnualFireCount<-aggregate(ANY.OF.YOUR.VARIABLES~Fire_Year,
Hello,
I used R a year ago. With the data I am working with now, I realized that I
need to go back to R. Unfortunately, my memory is not my friend if it comes
down to coding :-)
What I want to do is extract the length of a variable of a file with certain
conditions and then print this number in a
3 matches
Mail list logo