Re: [R-sig-eco] Applied Environmental Data Analyses: Water Chemistry and Biota

2012-12-06 Thread Eduard Szöcs
Hai Richard, have a look at: Borcard, Daniel, Francois Gillet, and Pierre Legendre. /Numerical Ecology with R (Use R)/. 1st Edition. Springer, 2011. which is the little brother to Legendre's Numerical Ecology, applying these methods with R. A very nice freely available book using R is: Kin

Re: [R-sig-eco] Applied Environmental Data Analyses: Water Chemistry and Biota

2012-12-06 Thread Rich Shepard
On Thu, 6 Dec 2012, alfredo tello wrote: Check out the R package Vegan tutorial by Jari Oksanen: http://cc.oulu.fi/~jarioksa/opetus/metodi/vegantutor.pdf. Vegan has several functions which I believe should allow you to address some of your questions. Alfredo, I will certainly do this. I h

Re: [R-sig-eco] Applied Environmental Data Analyses: Water Chemistry and Biota

2012-12-06 Thread Rich Shepard
On Thu, 6 Dec 2012, Eduard Szöcs wrote: have a look at: Borcard, Daniel, Francois Gillet, and Pierre Legendre. /Numerical Ecology with R (Use R)/. 1st Edition. Springer, 2011. which is the little brother to Legendre's Numerical Ecology, applying these methods with R. Eduard, I have both;

Re: [R-sig-eco] Applied Environmental Data Analyses: Water Chemistry and Biota

2012-12-06 Thread Rich Shepard
On Thu, 6 Dec 2012, Alan Haynes wrote: Theres a book coming out next May by Otto Wildi called "Data Analysis in Vegetation Ecology" 2nd Edition which includes a lot of R code. While its aimed at vegetation ecology, a lot of the principles in the book can be generalised to community analysis in w

Re: [R-sig-eco] Applied Environmental Data Analyses: Water Chemistry and Biota

2012-12-06 Thread Ian R Waite
Rich, I would suggest checking out the following book -- I find it very useful and well written, using good case studies and all with R. Environmental and Ecological Statistics with R (Chapman & Hall/CRC Applied Environmental Statistics) [Paperback] Song S. Qian (Author) › Visit Amazon's Song

[R-sig-eco] error in layernames and RasterStack

2012-12-06 Thread Alok K. Bohara
Hi: I am trying to replicate some commands in maxlike. #*** library(raster) set.seed(131) x1 <- sort(rnorm(100)) x1 <- raster(outer(x1, x1), xmn=0, xmx=100, ymn=0, ymx=100) x2 <- raster(matrix(runif(1e4), 100, 100), 0, 100, 0, 100) x3 <- raster(matrix(c(0,1), 100, 100), 0, 100, 0, 100) r <- s

Re: [R-sig-eco] error in layernames and RasterStack

2012-12-06 Thread Baldwin, Jim -FS
I think you might want names(r) <- c("x1", "x2", "x3") rather than r@layernames <- c("x1", "x2", "x3") Jim -Original Message- From: r-sig-ecology-boun...@r-project.org [mailto:r-sig-ecology-boun...@r-project.org] On Behalf Of Alok K. Bohara Sent: Thursday, December 06, 2

Re: [R-sig-eco] Applied Environmental Data Analyses: Water Chemistry and Biota [RESOLVED]

2012-12-06 Thread Rich Shepard
On Wed, 5 Dec 2012, Rich Shepard wrote: The available benthic data has little taxonomic consistency below the family level. Looking at packages in CRAN brought me to Lester Yuan's bio.infer package described in the 2007 Journal of Statistical Software special issue on ecology/environmental

Re: [R-sig-eco] Applied Environmental Data Analyses: Water Chemistry and Biota

2012-12-06 Thread Philippi, Tom
While vegan and other packages offer many powerful tools for analyzing species composition data, there's a fair bit available that is more directly aimed at using aquatic biotic data for water quality monitoring and assessment. I suggest spending some time with r-seek (www.rseek.org) to find out w

Re: [R-sig-eco] Applied Environmental Data Analyses: Water Chemistry and Biota [RESOLVED]

2012-12-06 Thread EJ BURTON
Hi Rich You could have a look at 'Simulation of Ecological and Environmental Models' by Miguel F. Acevedo - CRC Press - Frances & Taylor Group. Whether it would be useful I don't know as it is way, way above my level of understanding. It uses R. Regards Jim Burton

Re: [R-sig-eco] Applied Environmental Data Analyses: Water Chemistry and Biota

2012-12-06 Thread Rich Shepard
On Thu, 6 Dec 2012, Ian R Waite wrote: Just my two cents, HTH Ian, Thank you. Rich -- Richard B. Shepard, Ph.D. | Integrity - Credibility - Innovation Applied Ecosystem Services, Inc. | Voice: 503-667-4517 Fax: 503-667-8863 _

[R-sig-eco] difftime in R

2012-12-06 Thread Kristen Gorman
Dear all, I am trying to calculate the difference between 2 times, each expressed as a Date and associated Time, see the below test example: EventT1T2 112-06-01 1:00 12-06-02 0:00 212-06-01 1:00 12-06-02 0:00 312-06-01 1:00 12-06-02 0:00 41

Re: [R-sig-eco] difftime in R

2012-12-06 Thread Thomas Petzoldt
try: as.numeric(T3) Note that this is a typical "r-help" question. Thomas Petzoldt -- DataSetb <- data.frame( T1 = rep("2012-06-01 1:00", 5), T2 = rep("2012-06-02 0:00", 5) ) T1<- as.POSIXlt(DataSetb$T1) T2<- as.POSIXlt(DataSetb$T2) T3<- as.numeri

Re: [R-sig-eco] difftime in R

2012-12-06 Thread Daniel Pritchard
Hi Kristen, Thomas is right on both counts. Though, as a further word of caution, it is not guaranteed that difftime() will return data in 'hours'. This is probably the reason why it returns a special class whose format() method tries so very hard to include the units. I'd suggest either s