Christopher W. Ryan <cryan <at> binghamton.edu> writes:

> 
> suppose I have some logical vector
> 
> x <- as.logical(c(0,0,0,1,0,0,1,1,0))
> x
> 
> How would I make the words TRUE appear on the screen in a different
> color from the words FALSE?
> 
> Thanks.
> 
> --Chris

# install.packages("xterm256")
library(xterm256)

cat(style(x, fg=c(0,0,0,1,0,0,1,1,0)))

HIH

Paolo

______________________________________________
R-help@r-project.org 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.

Reply via email to