[R] selected value in a vector to make bold
Erik Iverson
eriki at ccbr.umn.edu
Wed Oct 6 21:12:56 CEST 2010
What output medium? On a graphic? In LaTeX ouput?
Or do you mean in the R console?
Joe P King wrote:
> I wasn't sure about the subject so I am sorry about the vagueness, but if I
> have a vector of values, how do I get a certain type of vectors to be bold
> or italics?
>
>
>
> So let x be a vector from -10 to 10, how would I tell it to bold the x
> values that are greater than 0? Or like absolute value of 5? Is it possible
> to do this in like an if else statement? Could I use
>
>
>
> x<-seq(-10,10,1)
>
> x.bold<-expression(paste(bold(x)))
>
>
>
> thanks all!
>
>
>
> -------------------------------------------
>
> Joe King, M.A.
>
> Ph.D. Student
>
> University of Washington - Seattle
>
> 206-913-2912
>
> <mailto:jp at joepking.com> jp at joepking.com
>
> -------------------------------------------
>
> "Never throughout history has a man who lived a life of ease left a name
> worth remembering." --Theodore Roosevelt
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
More information about the R-help
mailing list