Re: [R] Multiple logical operations in a subscript

2008-09-19 Thread Ted Harding
d: "Y"|"Z" Error in "Y" | "Z" : operations are possible only for numeric or logical types On the other hand: 1|(-2)|(3.14159) [1] TRUE Hoping this helps, Ted. >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTE

Re: [R] Multiple logical operations in a subscript

2008-09-19 Thread Greg Snow
Healthcare [EMAIL PROTECTED] 801.408.8111 > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > project.org] On Behalf Of Mark Na > Sent: Thursday, September 18, 2008 6:11 PM > To: [EMAIL PROTECTED] > Subject: [R] Multiple logical operations in a subscrip

Re: [R] Multiple logical operations in a subscript

2008-09-18 Thread Peter Alspach
r 2008 12:11 p.m. > To: [EMAIL PROTECTED] > Subject: [R] Multiple logical operations in a subscript > > Hello, > > I would like to select cases using multiple logical > operations (e.g. X or Y or Z) without having to repeat the > dataframe$variable within the subscript

[R] Multiple logical operations in a subscript

2008-09-18 Thread Mark Na
Hello, I would like to select cases using multiple logical operations (e.g. X or Y or Z) without having to repeat the dataframe$variable within the subscript. My working code (with a single logical operator) currently looks like this: dataframe$newvariable[data$oldvariable=="X"]<-"group1" I