Skip to content
Back to formatted view

Raw Message

Message-ID: <1343658764290-4638359.post@n4.nabble.com>
Date: 2012-07-30T14:32:44Z
From: cm
Subject: If equal statement for character objects

I have a data frame (trans)
123     P
143     z   ...ect

I want to write a statement that says:
if ((trans[i,2]="p")&(trans[1+1,2]="z")){....

but I get the warning message that states:
 operations are possible only for numeric, logical or complex types

Any ideas?
Thanks



--
View this message in context: http://r.789695.n4.nabble.com/If-equal-statement-for-character-objects-tp4638359.html
Sent from the R help mailing list archive at Nabble.com.