Tables in R Markdown

Discuss the jamovi platform, possible improvements, etc.

by Whirly123 » Fri May 15, 2020 2:17 pm

No that's not it either but I do have a slightly strange "solution":

Code: Select all
a <- capture.output(TResults$desc)
#a <- gsub("-", "\u2500", a)
a <- gsub("-", "_", a)
a <- gsub(" ", "\U00A0", a)
a <- gsub(",", "\U2424", a)

cat('<p style="font-family: Lucida Console">')
cat (a, quote = FALSE)
cat("</p>")


It looks like this:

Annoyingly this does not round to the correct amount of decimal places.
Attachments
1.jpg
1.jpg (85.09 KiB) Viewed 68 times
Whirly123
 
Posts: 18
Joined: Mon May 06, 2019 3:07 pm

by jonathon » Tue May 19, 2020 7:01 am

you control the decimal places with:

options(digits=...)

cheers
User avatar
jonathon
 
Posts: 1261
Joined: Fri Jan 27, 2017 10:04 am

Previous

Return to General