search for: leachdata

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

2008 Jun 05
1
choosing an appropriate linear model
...ent, the amount of rainfall was recorded as well as the amount of preservative chemical leached. A number of climatic variables were measured, but the most important is the amount of rainfall. I have tried a simple linear model, with zero intercept because zero rainfall cannot cause any leaching (leachdata dataframe is attached to this email). The diagnostics show clearly non-normally distributed residuals with a simple linear regression, and I am trying to figure out what to do about it (see attached diagnostics.png). This dataset contains measurements from 57 rainfall events on three replicate sa...
2008 Jun 06
6
Subsetting to unique values
I want to take the first row of each unique ID value from a data frame. For instance > ddTable <- data.frame(Id=c(1,1,2,2),name=c("Paul","Joe","Bob","Larry")) I want a dataset that is Id Name 1 Paul 2 Bob > unique(ddTable) Will give me all 4 rows, and > unique(ddTable$Id) Will give me c(1,2), but not accompanied by the name column.