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
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
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
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
4 matches
Mail list logo