cost 155 ms
如何自動將 huxtables 拆分到多個頁面?

[英]How do I automatically split huxtables across multiple pages?

目標: 在我正在開發的 Shiny 應用程序中,用戶可以上傳一個.csv文件,該文件被轉換為 huxtable、格式化並最終可以下載為.pdf 。 由於用戶可以上傳自己的數據集,我事先不知道它將包含多少行,也不知道該表是否需要跨多個頁面拆分。 因此,如果表格在.pdf文件中超過一頁時自動拆分,將會 ...

如何更改 export_summs() 表中的數字位數

[英]How to change digits of numbers in the export_summs() table

我使用安裝在名為jtools和huxtable的 package 中的export-summs()得到回歸 output 表。 我的代碼是: export_summs(model1, model2, scale = TRUE)和 有沒有辦法讓所有的數字變成 3 個十進制數字? ...

2022-09-03 19:49:47   2   26    r / huxtable  
huxtable 腳注:如何設置粗體、斜體等 - html 編碼不起作用

[英]huxtable footnote: how to set bold, italic etc. - html coding does not work

如果您設置標題: set_caption("...") html 代碼如“b、i、字體大小”等正在工作但是使用 add_footnote("...") 這不再是真的了,它只是將 html 代碼打印為文本有人知道如何解決這個問題。 或者如何設置腳注的樣式? ...

2022-07-13 13:07:41   1   22    huxtable  
如何從 R 中的 huxtable 中刪除腳注?

[英]How do I remove a footnote from a huxtable in R?

一旦通過add_footnote設置了腳注,似乎就很難再次擺脫它。library(magrittr) library(huxtable) jams <- hux( Type = c("Strawberry", "Raspberry", "Plum"), Price = c(1.9 ...

2022-06-14 07:01:10   1   48    r / huxtable  
如何在 R 中將 huxtable 保存為 png 文件

[英]How can I save a huxtable as png file in R

huxtable包帶有quick_*函數來保存輸出,例如 html(通過quick_html )、pdf(通過quick_pdf )等。 但是,似乎沒有直接保存到圖像(例如 png)的選項。 ...

為什么表格編號不能與 blogdown::html_page 一起使用,而是與 bookdown::html_document2 一起使用?

[英]Why is table numbering not working with blogdown::html_page, but working with bookdown::html_document2?

我有一份用 R Markdown 編寫的報告,應該使用編號的部分、數字和表格以及對它們的交叉引用: https ://github.com/joshuaborn/NSFG/blob/master/reports/use-of-contraception -in-the-united-states-2 ...

Rmarkdown PDF表格,合並單元格並返回行

[英]Rmarkdown PDF tables, merge cells and return to line

我正在嘗試在我的 pdf 報告中整合一項調查,該調查由三列組成; 一個是代碼,第二個是問題,第三個是可能的答案。 我想得到或多或少這樣的結果: 所以我基本上有兩個需求; 垂直合並 a 列和 b 列的單元格,並在 b 列中有很長問題的地方換行。 我嘗試使用 flextable 可以很好地合並 ...

基本 R 和 RStudio 筆記本電腦中的漂亮表格

[英]Nice looking tables in both base R and RStudio notebooks

我希望我的 function 打印漂亮的表格,無論它是從 base R 還是從 RStudio 筆記本( .Rmd文件)調用的。 function 應該弄清楚它是從哪里調用的,並相應地調整表格。 我希望 function 易於使用,並且不希望用戶必須指定有關從何處調用 function 的任何信息 ...

huxtable 中的指數回歸結果

[英]Exponentiate regression results in huxtable

我將一些表格與一系列 Cox 比例風險模型的結果放在一起。 我想對系數取冪,以便表格顯示風險比而不是原始 beta 值。 有誰知道用 huxtable 做到這一點的方法嗎? 這是我建立回歸表的首選 package。 我做了一些谷歌搜索,找不到解決方案。 ...

RMarkdown 表中的科學格式、下標和上標(docx 輸出)

[英]Scientific formats, subscripts and superscripts in RMarkdown table (docx output)

假設我有以下rmd: 在 Word 中生成此表。 問題我需要科學格式來使用上標和乘號(即 2.998 × 10 8 ),有些單元格需要下標(例如 N A和 H 2 O)。 決賽桌應該是這樣的。 我怎樣才能做到這一點? 我嘗試過/永遠不會嘗試的 huxtable package 及其markdown ...

在 huxtable::huxreg() 中使用自定義的 `glance` 方法

[英]Using a custom `glance` method in huxtable::huxreg()

我正在尋找一種方法來報告組的數量以及使用huxtable::huxreg來創建使用lmer()預測的多級模型的結果表的觀察數量。 我可以編寫一個自定義的 Glance 方法來覆蓋broom.mixed包中的glance.merMod方法,該方法在從 R 調用時huxreg()但在調用huxreg() ...

在 R Markdown 中使用 jtools 的回歸模型中的行高

[英]Row height in regression models with jtools in R Markdown

我想調整jtools回歸表中的行填充。 我嘗試set_row_height ,因為我讀到底層結構是huxtable 。 但我不確定,它沒有用。 它在 RStudio 中看起來不錯,但在 Markdown 中使用了大量的行空間。 set_font_size有效,但set_row_height無效。 ...

如何使用 R 中的“huxtable”庫為表格中所需的單元格着色。 哪種方式更優雅?

[英]How to color the required cells in the table using "huxtable" library in R. Which is more elegant way to do it?

我需要用灰色標記表格中的一些特殊單元格。 像這樣的東西: 在“knitr”作為 HTML 文檔之后,它給了我以下信息(作為屏幕截圖): 這就是我需要得到的。 但是,我的問題是:有什么比編寫這樣的代碼字符串更優雅的方法呢? 我試着這樣做: ...而且它根本沒有給我任何結果。 有任何想法嗎? ...

huxtable 中的 print_md 更改表格格式

[英]print_md in huxtable changes table formatting

我正在使用huxtable package 在 bookdown 中呈現的 PDF 中創建表。 表格完全按照我想要的方式格式化,直到我運行print_md命令,然后邊框從列名下方向上移動到 header 下方。 此外,header 從居中的 position 移動到右對齊。 一探究竟: 這使: 表 ...

在 RMarkdown 中為 PDF 使用 huxtable 標簽

[英]Using huxtable labels in RMarkdown for PDF

我正在使用 huxtable 在 RMarkdown 中為 output 顯示表格:pdf_document。 當我將 label 放入表中時 然后在正文中進行引用,例如 它顯示“有關更多詳細信息,請參見表 @ref(tab:mylabel)”而不是給出表號。 這在Huxtable package ...

Rmarkdown knit pdf - 使用 *italic* 獲取帶下划線的文本而不是斜體(huxtable 問題?)

[英]Rmarkdown knit pdf - getting underlined text instead of italic using *italic* (huxtable issue?)

當我打印 huxtable 時,使用 * * knits to pdf 格式化斜體時的 Rmarkdown 文本(塊之間)帶下划線而不是斜體格式。 這是我的例子: 是否有解決此問題的方法,因為我需要在 pdf 中打印 huxtable? ...

在huxtable中使用hugrex function格式化數字

[英]Formatting numbers with hugrex function in huxtable

huxtable huxreg中的huxtable huxreg 自動識別數字並將其格式化為number_format = "%.3f"選項中預定義的格式。 我想在我的報告中報告置信區間並使用CI95:前綴。 不幸的是,前綴的數字部分是自動格式化的,前綴看起來像CI95.000 。 讓我們考慮以下 ...

如何在 rmarkdown 的表格單元格中嵌入格式化的 R 代碼?

[英]How do I embed formatted R code in table cells in rmarkdown?

我正在為 R 包制作一個小插圖,我想展示如何在兩個 R 包中做同樣的事情。 我的首選方法是包含幾個表,我可以在其中顯示彼此相鄰的適當代碼,如下所示: 我不關心確切的字體,但我希望看到 R 代碼的布局很好且清晰,就像它在常規的 rmarkdown 塊中一樣,然后在表格的單元格中。 有沒有辦法在 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM