Re: [R] Comparing Variables and Writing a New Column

2010-02-01 Thread Jerry Floren
Hi David ( and Erik via e-mail), I think David's code is working. While using it I discovered there was an error in some previous code of mine that generated my df.soil table. After running David's code, nearly all lab results were flagged as **H. Then I looked at the df.soil table and found that

Re: [R] Comparing Variables and Writing a New Column

2010-02-01 Thread David Winsemius
On Feb 1, 2010, at 1:35 PM, Jerry Floren wrote: Hi David, Once again, thanks for your help. I still need some help. My original post was quite simplified, and perhaps that was a mistake. Here is the actual code and screen output from R: # Set the working directory setwd("C:\\Documents a

Re: [R] Comparing Variables and Writing a New Column

2010-02-01 Thread Jerry Floren
Hi David, Once again, thanks for your help. I still need some help. My original post was quite simplified, and perhaps that was a mistake. Here is the actual code and screen output from R: # Set the working directory setwd("C:\\Documents and Settings\\jfloren\\My Documents\\TestRSoil") # Read

Re: [R] Comparing Variables and Writing a New Column

2010-02-01 Thread David Winsemius
On Feb 1, 2010, at 11:36 AM, David Winsemius wrote: On Feb 1, 2010, at 11:11 AM, Jerry Floren wrote: HI, I am using Windows XP and R version 2.9.2. I have a data frame written by R similar to the following: Lab_IDAnalysis_SoilResults-4MAD -2.5MAD +2.5MAD

Re: [R] Comparing Variables and Writing a New Column

2010-02-01 Thread David Winsemius
On Feb 1, 2010, at 11:11 AM, Jerry Floren wrote: HI, I am using Windows XP and R version 2.9.2. I have a data frame written by R similar to the following: Lab_IDAnalysis_SoilResults-4MAD -2.5MAD +2.5MAD+4MAD 55003Calcium-2008-116 900 9

[R] Comparing Variables and Writing a New Column

2010-02-01 Thread Jerry Floren
HI, I am using Windows XP and R version 2.9.2. I have a data frame written by R similar to the following: Lab_IDAnalysis_SoilResults-4MAD -2.5MAD +2.5MAD+4MAD 55003Calcium-2008-116 900 9611121.5 1656.5 1817 55003