[R] How to bold items on a data frame?

Joshua Wiley jwiley.psych at gmail.com
Tue Nov 23 17:46:07 CET 2010


Hi Stephen,

bold is presentation type idea, you can do it in reports (e.g., via
Sweave in LaTeX with \textbf{} or \mathbf{}), or graphs from R (e.g.,
make your title bold: expression(bold("Your Title"))), but it is not
something you do in R itself.  Some front ends to R or text editors
may provide syntax/code highlighting and it may be possible to tweak
them to make whatever you want bold but this will be editor dependent
and more relevant to their mailing lists than to R-help.

Best regards,

Josh

On Tue, Nov 23, 2010 at 8:27 AM, Stephen Liu <satimis at yahoo.com> wrote:
> Hi folks,
>
> I ran following commands to create a data file:
>
> Year <- c(1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990)
> Yield <- c(60, 50, 70, 70, 80, 50, 60, 40)
> Concentration% <- c(30, 40, 50, 60, 70, 80, 90, 100)
> Temperature <- c(56, 47, 53, 53, 56, 47, 44, 44)
>
> datafile <- data.frame(Year,Yield,Concentration,Temperature)
>
> Please advise how to bold the items, Year/Yield/etc.
>
> TIA
>
> B.R.
> Stephen L
>
>
>
>
> ______________________________________________
> 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.



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles
http://www.joshuawiley.com/



More information about the R-help mailing list