Re: [R] If help

2010-07-20 Thread jim holtman
Try this, assuming your data is consistent: > x <- read.table(textConnection('"NoReduction" "NoReduction" + "Reduction""Reduction" + "NoReduction" "NoReduction" + "NoReduction" "NoReduction" + "Reduction""Reduction" + "Red

Re: [R] If help

2010-07-20 Thread David Winsemius
On Jul 20, 2010, at 1:14 PM, Heiman, Thomas J. wrote: Hi Y'all, I have some data in a table with 2 columns. There are two values: "Reduction" and "No Reduction. " I am trying to make a new variable change which recode the combinations from column 1 and 2 into a single number. Here is a

[R] If help

2010-07-20 Thread Heiman, Thomas J.
Hi Y'all, I have some data in a table with 2 columns. There are two values: "Reduction" and "No Reduction. " I am trying to make a new variable change which recode the combinations from column 1 and 2 into a single number. Here is a snippet from the table: [1,] "NoReduction" "No