I'll appreciate if someone can describe this to me! My mind is about to blow up on this fundamental logical inconsistency!
Levels: "Failed-CMD INF ERROR" "Failed-TRANS EXPIRED" "Successful"
> trlog$X.sce_status. == as.character("Successful")
The key to the confusion here is the way that R prints out elements of a
factor variable. If you construct a simple factor variable:
f <- factor("Successful")
and print it
f ##  Successful ## Levels: Successful
you can see that R prints out the level name without quotation marks. On the other hand, if you have a (slightly weird) factor where the labels actually contain quotation marks, you get a reasonable-seeming but subtly different result printed:
g <- factor("\"Successful\"") g ##  "Successful" ## Levels: "Successful"
This becomes a little bit clearer (?) if you print the results of
as.character, which does print with quotation marks by default:
as.character(f) ##  "Successful" as.character(g) ##  "\"Successful\""
You can use
print(g,quote=TRUE) if you want to add/subtract quotation marks from the printed representation.