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.
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.