[R] selected value in a vector to make bold

Joe P King jp at joepking.com
Wed Oct 6 21:14:38 CEST 2010


oh sorry for not specifying, I want it returned in the console, another
vector I can call.

Joe King
206-913-2912
jp at joepking.com
"Never throughout history has a man who lived a life of ease left a name
worth remembering." --Theodore Roosevelt


-----Original Message-----
From: Erik Iverson [mailto:eriki at ccbr.umn.edu] 
Sent: Wednesday, October 06, 2010 12:13 PM
To: Joe P King
Cc: r-help at r-project.org
Subject: Re: [R] selected value in a vector to make bold

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