Displaying 3 results from an estimated 3 matches for "standid".
Did you mean:
standad
2010 Aug 25
2
find most repeated item from column in dataframe
R users,
I am trying to find some way to find the value of a column that is repeated
the most for each StandID of a dataframe. I have research methods online
and the help page, but have had no success in finding a solution. I have
tried using the table function but it returns items for the whole dataset
and not by the StandID. Any help will be appreciated. Thanks in advance.
R version 2.11.1
Windows 7...
2013 May 16
2
R looping help
...lt;-ssr/mses[st]
pValues[st]<-1-pf(fRatio,1,length(xi)-2)
#Increment the stand number, zero the within stand collections,
#and start again
st<-st+1
xi<-numeric(0)
yi<-numeric(0)
xi[1]=X[i]
yi[1]=Y[i]
}
}
#Make your data set
standEstimates<-data.frame(standID=stands,intercept=intercepts,slop=slopes,mse=mses,rSquare=rsquares,pValue=pValues)
The standEstimate outputs look like this:
standID intercept slop mse rSquare pValue
1 6833 319.2470 NA 0 NA NA
2 756 708.7470 NA 0 NA NA
3 795 508.2290 NA 0 NA NA
4 1249 503.1460 NA 0 NA NA
5 1331 703.062...
2010 Sep 15
1
Format Data Issue??
R Users,
I am new to R and have tried to figure out how to automate this
process instead of using excel. I have read in this dataframe into r
with read.table. I need to reshape the data from the first table into
the format of the second table.
TractID StandID Species CruiseDate DBHClass TreesPerAcre
Carbon Stand 1 Loblolly Pine 5/20/2010 10 1.2
Carbon Stand 1 Loblolly Pine 5/20/2010 12 1.2
Carbon Stand 1 Loblolly Pine 5/20/2010 14 0.61
Carbon Stand 1 Loblolly Pine 5/20/2010 16 0.75
Carbon Stand 1 Hard Hardwood...