Re: [R-sig-eco] Replacing values in a data frame

2012-10-25 Thread Manuel Spínola
Thank you very much Tim. Best, Manuel 2012/10/25 Tim Meehan > You can also try using ifesle() > > A$X2 <- ifelse(A$X2>1, 1, A$X2) > > > On Thu, Oct 25, 2012 at 2:08 PM, Peter Solymos wrote: > >> Maybe: >> A$X2[A$X2>1] <- 1 >> >> Peter >> >> -- >> Péter Sólymos, Dept Biol Sci, Univ Alberta, T6G

Re: [R-sig-eco] Replacing values in a data frame

2012-10-25 Thread Manuel Spínola
Thank you very much Sarah. No, just to replace the values greater than 1 in X2. Best, Manuel 2012/10/25 Sarah Goslee > Hi, > > 2012/10/25 Manuel Spínola : > > Dear list members, > > > > I want to replace the values of a numerical variable in a data frame > called > > "A". > > > > A > > X1

Re: [R-sig-eco] Replacing values in a data frame

2012-10-25 Thread Tim Meehan
You can also try using ifesle() A$X2 <- ifelse(A$X2>1, 1, A$X2) On Thu, Oct 25, 2012 at 2:08 PM, Peter Solymos wrote: > Maybe: > A$X2[A$X2>1] <- 1 > > Peter > > -- > Péter Sólymos, Dept Biol Sci, Univ Alberta, T6G 2E9, Canada AB > soly...@ualberta.ca, Ph 780.492.8534, http://psolymos.github.com

Re: [R-sig-eco] Replacing values in a data frame

2012-10-25 Thread Sarah Goslee
Hi, 2012/10/25 Manuel Spínola : > Dear list members, > > I want to replace the values of a numerical variable in a data frame called > "A". > > A > X1X2 > 2 1.5 > 31 > 41.2 > > How to replace any value greater than 1 by the value 1 in the variable X2. I think you made a

Re: [R-sig-eco] Replacing values in a data frame

2012-10-25 Thread Peter Solymos
Maybe: A$X2[A$X2>1] <- 1 Peter -- Péter Sólymos, Dept Biol Sci, Univ Alberta, T6G 2E9, Canada AB soly...@ualberta.ca, Ph 780.492.8534, http://psolymos.github.com Alberta Biodiversity Monitoring Institute, http://www.abmi.ca Boreal Avian Modelling Project, http://www.borealbirds.ca 2012/10/25 Ma

[R-sig-eco] Replacing values in a data frame

2012-10-25 Thread Manuel Spínola
Dear list members, I want to replace the values of a numerical variable in a data frame called "A". A X1X2 2 1.5 31 41.2 How to replace any value greater than 1 by the value 1 in the variable X2. Thank you very much in advance. Best, Manuel -- *Manuel Spínola, Ph.D

[R-sig-eco] Non-parametric test for unbalanced complete block data

2012-10-25 Thread Narkis Morales San Martin
Hi all I need some help with some data from a germination experiment, specifically hypocotyl and radicle elongation data. I wanted to determine if the concentration of different leaf leachates (3 different concentrations) and the removal the mesocarp of the seeds (with mesocarp/without mesocarp) h