Re: [R] help with doing a manipulation on a column of a data frame based on another column

2008-10-29 Thread joris meys
> #this is my stab at - I am sure that I am missing something. If this > doesn't make sense then please ask for more details. #This may show > my low level of programing knowledge > > hester. <- c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4) > value <- rnorm(16) > x <- data.frame(value, hester.) > > z <- > (

Re: [R] help with doing a manipulation on a column of a data frame based on another column

2008-10-28 Thread Rolf Turner
On 29/10/2008, at 2:41 PM, stephen sefick wrote: #this is my stab at - I am sure that I am missing something. If this doesn't make sense then please ask for more details. #This may show my low level of programing knowledge hester. <- c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4) value <- rnorm(16) x <-

[R] help with doing a manipulation on a column of a data frame based on another column

2008-10-28 Thread stephen sefick
#this is my stab at - I am sure that I am missing something. If this doesn't make sense then please ask for more details. #This may show my low level of programing knowledge hester. <- c(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4) value <- rnorm(16) x <- data.frame(value, hester.) z <- (if(x[,"hester."]==