[R] conditional coloring of output text in console or in GUI

Liviu Andronic landronimirc at gmail.com
Tue Jun 30 20:12:53 CEST 2009


Hello,

On 6/30/09, Christopher W. Ryan <cryan at binghamton.edu> wrote:
> 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?
>
I believe xterm256 would help with this, and perhaps highlight [1].
Liviu

[1] http://r-forge.r-project.org/projects/highlight/




More information about the R-help mailing list