![](/img/trans.png)
[英]How do I automatically split huxtables across multiple pages?
目標: 在我正在開發的 Shiny 應用程序中,用戶可以上傳一個.csv文件,該文件被轉換為 huxtable、格式化並最終可以下載為.pdf 。 由於用戶可以上傳自己的數據集,我事先不知道它將包含多少行,也不知道該表是否需要跨多個頁面拆分。 因此,如果表格在.pdf文件中超過一頁時自動拆分,將會 ...
[英]How do I automatically split huxtables across multiple pages?
目標: 在我正在開發的 Shiny 應用程序中,用戶可以上傳一個.csv文件,該文件被轉換為 huxtable、格式化並最終可以下載為.pdf 。 由於用戶可以上傳自己的數據集,我事先不知道它將包含多少行,也不知道該表是否需要跨多個頁面拆分。 因此,如果表格在.pdf文件中超過一頁時自動拆分,將會 ...
[英]How to change digits of numbers in the export_summs() table
我使用安裝在名為jtools和huxtable的 package 中的export-summs()得到回歸 output 表。 我的代碼是: export_summs(model1, model2, scale = TRUE)和 有沒有辦法讓所有的數字變成 3 個十進制數字? ...
[英]huxtable footnote: how to set bold, italic etc. - html coding does not work
如果您設置標題: set_caption("...") html 代碼如“b、i、字體大小”等正在工作但是使用 add_footnote("...") 這不再是真的了,它只是將 html 代碼打印為文本有人知道如何解決這個問題。 或者如何設置腳注的樣式? ...
[英]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 ...
[英]How can I save a huxtable as png file in R
huxtable包帶有quick_*函數來保存輸出,例如 html(通過quick_html )、pdf(通過quick_pdf )等。 但是,似乎沒有直接保存到圖像(例如 png)的選項。 ...
[英]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 tables, merge cells and return to line
我正在嘗試在我的 pdf 報告中整合一項調查,該調查由三列組成; 一個是代碼,第二個是問題,第三個是可能的答案。 我想得到或多或少這樣的結果: 所以我基本上有兩個需求; 垂直合並 a 列和 b 列的單元格,並在 b 列中有很長問題的地方換行。 我嘗試使用 flextable 可以很好地合並 ...
[英]Nice looking tables in both base R and RStudio notebooks
我希望我的 function 打印漂亮的表格,無論它是從 base R 還是從 RStudio 筆記本( .Rmd文件)調用的。 function 應該弄清楚它是從哪里調用的,並相應地調整表格。 我希望 function 易於使用,並且不希望用戶必須指定有關從何處調用 function 的任何信息 ...
[英]Exponentiate regression results in huxtable
我將一些表格與一系列 Cox 比例風險模型的結果放在一起。 我想對系數取冪,以便表格顯示風險比而不是原始 beta 值。 有誰知道用 huxtable 做到這一點的方法嗎? 這是我建立回歸表的首選 package。 我做了一些谷歌搜索,找不到解決方案。 ...
[英]Scientific formats, subscripts and superscripts in RMarkdown table (docx output)
假設我有以下rmd: 在 Word 中生成此表。 問題我需要科學格式來使用上標和乘號(即 2.998 × 10 8 ),有些單元格需要下標(例如 N A和 H 2 O)。 決賽桌應該是這樣的。 我怎樣才能做到這一點? 我嘗試過/永遠不會嘗試的 huxtable package 及其markdown ...
[英]export a huxtable data and a ggplot into one excel file
I'm asking if I could export from R, a huxtable dataset in one sheet and a plot from ggplot2 in another sheet, and in the same excel file? I tried w ...
[英]Using a custom `glance` method in huxtable::huxreg()
我正在尋找一種方法來報告組的數量以及使用huxtable::huxreg來創建使用lmer()預測的多級模型的結果表的觀察數量。 我可以編寫一個自定義的 Glance 方法來覆蓋broom.mixed包中的glance.merMod方法,該方法在從 R 調用時huxreg()但在調用huxreg() ...
[英]Row height in regression models with jtools in R Markdown
我想調整jtools回歸表中的行填充。 我嘗試set_row_height ,因為我讀到底層結構是huxtable 。 但我不確定,它沒有用。 它在 RStudio 中看起來不錯,但在 Markdown 中使用了大量的行空間。 set_font_size有效,但set_row_height無效。 ...
[英]How to color the required cells in the table using "huxtable" library in R. Which is more elegant way to do it?
我需要用灰色標記表格中的一些特殊單元格。 像這樣的東西: 在“knitr”作為 HTML 文檔之后,它給了我以下信息(作為屏幕截圖): 這就是我需要得到的。 但是,我的問題是:有什么比編寫這樣的代碼字符串更優雅的方法呢? 我試着這樣做: ...而且它根本沒有給我任何結果。 有任何想法嗎? ...
[英]print_md in huxtable changes table formatting
我正在使用huxtable package 在 bookdown 中呈現的 PDF 中創建表。 表格完全按照我想要的方式格式化,直到我運行print_md命令,然后邊框從列名下方向上移動到 header 下方。 此外,header 從居中的 position 移動到右對齊。 一探究竟: 這使: 表 ...
[英]Using huxtable labels in RMarkdown for PDF
我正在使用 huxtable 在 RMarkdown 中為 output 顯示表格:pdf_document。 當我將 label 放入表中時 然后在正文中進行引用,例如 它顯示“有關更多詳細信息,請參見表 @ref(tab:mylabel)”而不是給出表號。 這在Huxtable package ...
[英]Rmarkdown knit pdf - getting underlined text instead of italic using *italic* (huxtable issue?)
當我打印 huxtable 時,使用 * * knits to pdf 格式化斜體時的 Rmarkdown 文本(塊之間)帶下划線而不是斜體格式。 這是我的例子: 是否有解決此問題的方法,因為我需要在 pdf 中打印 huxtable? ...
[英]Formatting numbers with hugrex function in huxtable
huxtable huxreg中的huxtable huxreg 自動識別數字並將其格式化為number_format = "%.3f"選項中預定義的格式。 我想在我的報告中報告置信區間並使用CI95:前綴。 不幸的是,前綴的數字部分是自動格式化的,前綴看起來像CI95.000 。 讓我們考慮以下 ...
[英]How do I embed formatted R code in table cells in rmarkdown?
我正在為 R 包制作一個小插圖,我想展示如何在兩個 R 包中做同樣的事情。 我的首選方法是包含幾個表,我可以在其中顯示彼此相鄰的適當代碼,如下所示: 我不關心確切的字體,但我希望看到 R 代碼的布局很好且清晰,就像它在常規的 rmarkdown 塊中一樣,然后在表格的單元格中。 有沒有辦法在 ...