Re: [R] Seeing negative numbers to zero

2009-08-08 Thread Don MacQueen
You probably have a working solution by now, from the other responses, but s ince you're new to R I'd like to point out a few things. (1) Using subset() to pull out just one column is overkill. Two simpler ways are KN1 - KN[ , 5]## note the comma KN1 - KN[[5]] And learning how to do

[R] Seeing negative numbers to zero

2009-08-07 Thread DebbieMB
Hi, I am also new to R and I have a related question. I am trying to set negative values in a single column of a dataframe to zero and I can't seem to do it. I have tried: KN1-subset(KN,select=c(5)) # Here I am selecting the column of the dataframe KN1 and assigning it the name KN2 - this

Re: [R] Seeing negative numbers to zero

2009-08-07 Thread Daniel Nordlund
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of DebbieMB Sent: Friday, August 07, 2009 1:29 PM To: r-help@r-project.org Subject: [R] Seeing negative numbers to zero Hi, I am also new to R and I have a related question

Re: [R] Seeing negative numbers to zero

2009-08-07 Thread Ted Harding
On 07-Aug-09 20:29:16, DebbieMB wrote: Hi, I am also new to R and I have a related question. I am trying to set negative values in a single column of a dataframe to zero and I can't seem to do it. I have tried: KN1-subset(KN,select=c(5)) # Here I am selecting the column of the dataframe

Re: [R] Seeing negative numbers to zero

2009-08-07 Thread Daniel Nordlund
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Daniel Nordlund Sent: Friday, August 07, 2009 2:50 PM To: r-help@r-project.org Subject: Re: [R] Seeing negative numbers to zero -Original Message- From: r-help-boun

Re: [R] Seeing negative numbers to zero

2009-08-07 Thread David Winsemius
On Aug 7, 2009, at 4:29 PM, DebbieMB wrote: Hi, I am also new to R and I have a related question. I am trying to set negative values in a single column of a dataframe to zero and I can't seem to do it. I have tried: KN1-subset(KN,select=c(5)) # Here I am selecting the column of the