Re: [R] short question about data frame manipulation

2010-04-30 Thread Dennis Murphy
Hi: On Fri, Apr 30, 2010 at 6:08 AM, arnaud Gaboury wrote: > Dear group, > > I am losing my mind with a simple question. Sorry if obvious, but I maybe > start to be confused after days and days of reading documentations. > > Df : > > > df <- > structure(list(a = 1:3, b = 4:6, c = structure(c(1L,

Re: [R] short question about data frame manipulation

2010-04-30 Thread Lanna Jin
df[1:2]<-df[1:2]*-1 - Lanna Jin lanna...@gmail.com 510-898-8525 -- View this message in context: http://r.789695.n4.nabble.com/short-question-about-data-frame-manipulation-tp2076891p2076899.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] short question about data frame manipulation

2010-04-30 Thread David Winsemius
On Apr 30, 2010, at 9:08 AM, arnaud Gaboury wrote: Dear group, I am losing my mind with a simple question. Sorry if obvious, but I maybe start to be confused after days and days of reading documentations. Df : df <- structure(list(a = 1:3, b = 4:6, c = structure(c(1L, 1L, 1L), class = "f

[R] short question about data frame manipulation

2010-04-30 Thread arnaud Gaboury
Dear group, I am losing my mind with a simple question. Sorry if obvious, but I maybe start to be confused after days and days of reading documentations. Df : df <- structure(list(a = 1:3, b = 4:6, c = structure(c(1L, 1L, 1L), class = "factor", .Label = "w")), .Names = c("a", "b", "c"), row.na