search for: pibo

Displaying 2 results from an estimated 2 matches for "pibo".

Did you mean: pbo
2012 Oct 30
2
help with for loop: new column giving count of observation for each SITEID
...;t do the analysis separately for each SiteID. indexi<-indexg[order(indexg$SiteID,indexg$Yr),] obs=0 indexi=na.omit(indexi) for(i in 1:length(indexi$SiteID)){ obs=obs+1 indexi$obs[i]=obs } Thanks for any help you can give. Christy Meredith USDA Forest Service Rocky Mountain Research Station PIBO Monitoring Data Analyst Voice: 435-755-3573 Fax: 435-755-3563 This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and sub...
2012 Oct 24
1
randomly select another observation with same grouping factor and year value, do for every record in dataframe
..., n) df[sample(nrow(df), n), , drop = FALSE] selected=sample.df(roads[roads$HUC == "huc1"& roads$REACH_Yr =="yr" , ], 1) output=cbind (initRchid,selected$RchID,selected$Sitetype,selected$REACH_Yr) } Christy Meredith USDA Forest Service Rocky Mountain Research Station PIBO Monitoring Data Analyst Voice: 435-755-3573 Fax: 435-755-3563 This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of this message or the use or disclosure of the information it contains may violate the law and sub...