[R-sig-eco] How to include math symbols in a data frame
Manuel Spínola
mspinola10 at gmail.com
Mon Oct 9 18:08:37 CEST 2017
Thank you Yaïr.
Sorry about that.
Looking in an answer from stackoverflow for another type of problem, I
found this solution:
column1 <- c("a", "b", "c")
column2 <- c("\u2264 0.3", 0.5, 0.8)
column3 <- c("\u2264 0.5" , 0.6, 0.9)
table <- data.frame(column1, column2, column3)
kable(table)
2017-10-09 9:55 GMT-06:00 Levy, Yaïr <yair.levy at mow.vlaanderen.be>:
> Dear Manuel,
>
>
> How about:
>
> "
>
> column1 <- c("a", "b", "c")
> column2 <- paste("<= ", c(0.3, 0.5, 0.8))
> column3 <- paste("<= ", c(0.5, 0.6, 0.9))
>
> table <- data.frame(column1, column2, column3)
>
> table
>
>
> "
>
>
>
> Watch out not to mix English with Spanish while scripting fast.
>
>
> Pura Vida!
>
>
> Yaïr Levy
>
>
>
>
>
>
>
> -----Oorspronkelijk bericht-----
> Van: R-sig-ecology [mailto:r-sig-ecology-bounces at r-project.org] Namens
> Manuel Spínola
> Verzonden: maandag 9 oktober 2017 17:48
> Aan: r-sig-ecology at r-project.org
> Onderwerp: [R-sig-eco] How to include math symbols in a data frame
>
> Dear list members,
>
> I am trying to make a table with math symbols, specifically, less than or
> equal to symbol:
>
> column1 <- c("a", "b", "c")
> column2 <- c("less than or equal to" 0.3, 0.5, 0.8)
> column3 <- c("less than or equal to" 0.5, 0.6, 0.9)
>
> table <- data.frame(columna1, columna2, columna3)
>
> kable(table)
>
> How can I include the math symbol in the table?
>
> Manuel
> --
> *Manuel Spínola, Ph.D.*
> Instituto Internacional en Conservación y Manejo de Vida Silvestre
> Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA mspinola at una.cr
> <mspinola at una.ac.cr> mspinola10 at gmail.com
> Teléfono: (506) 8706 - 4662
> Personal website: Lobito de río <https://sites.google.com/
> site/lobitoderio/>
> Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-ecology mailing list
> R-sig-ecology at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>
--
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspinola at una.cr <mspinola at una.ac.cr>
mspinola10 at gmail.com
Teléfono: (506) 8706 - 4662
Personal website: Lobito de río <https://sites.google.com/site/lobitoderio/>
Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>
[[alternative HTML version deleted]]
More information about the R-sig-ecology
mailing list