r-markdown

Change line spacing for RMD abstract?

ぐ巨炮叔叔 提交于 2020-05-13 10:48:23
问题 Is it possible to change the line spacing for the abstract specified in my YAML header to single space, while leaving the rest of the document in double space? My YAML is below: output: pdf_document number_sections: true title: | | My Title author: - Me header-includes: - \usepackage{setspace}\doublespacing - \usepackage{float} abstract: "My abstract" keywords: "My keywords" date: "`r format(Sys.time(), '%B %d, %Y')`" geometry: margin=1in fontsize: 12pt spacing: double fig_caption: yes indent

Use additional Latex packages for math expressions in RMarkdown `output = “html_document”`

筅森魡賤 提交于 2020-05-13 05:06:49
问题 I`m aware how to use additional Latex-packages for pdf-format output from .Rmd files using --- header-includes: - \usepackage{mathtools} --- in the YAML header. However, this does (of course) not work if one specifies output: html_document . --- output: html_document header-includes: - \usepackage{mathtools} --- Using additional Latex-Packages could be of interest for output: html_document , too - especially in math expressions (MWE below) --- title: "MWE" output: html_document header

Use additional Latex packages for math expressions in RMarkdown `output = “html_document”`

别来无恙 提交于 2020-05-13 05:05:27
问题 I`m aware how to use additional Latex-packages for pdf-format output from .Rmd files using --- header-includes: - \usepackage{mathtools} --- in the YAML header. However, this does (of course) not work if one specifies output: html_document . --- output: html_document header-includes: - \usepackage{mathtools} --- Using additional Latex-Packages could be of interest for output: html_document , too - especially in math expressions (MWE below) --- title: "MWE" output: html_document header

Use additional Latex packages for math expressions in RMarkdown `output = “html_document”`

时间秒杀一切 提交于 2020-05-13 05:04:21
问题 I`m aware how to use additional Latex-packages for pdf-format output from .Rmd files using --- header-includes: - \usepackage{mathtools} --- in the YAML header. However, this does (of course) not work if one specifies output: html_document . --- output: html_document header-includes: - \usepackage{mathtools} --- Using additional Latex-Packages could be of interest for output: html_document , too - especially in math expressions (MWE below) --- title: "MWE" output: html_document header

Using Data from Environment in R Markdown [duplicate]

ⅰ亾dé卋堺 提交于 2020-05-12 01:56:53
问题 This question already has answers here : How to use objects from global environment in Rstudio Markdown (5 answers) Closed 3 years ago . I'm trying to use data from Global Environment in R Markdown . When I call a 'summary(mydata)' it gives me this error: object 'mydata' not found I got all my work in many different scripts, so that is not easy for me to create a .R file for each result. So, can I call data defined on Global Environment in R Markdown ? Thank You. 回答1: There are 2 ways to load

Using Data from Environment in R Markdown [duplicate]

扶醉桌前 提交于 2020-05-12 01:52:57
问题 This question already has answers here : How to use objects from global environment in Rstudio Markdown (5 answers) Closed 3 years ago . I'm trying to use data from Global Environment in R Markdown . When I call a 'summary(mydata)' it gives me this error: object 'mydata' not found I got all my work in many different scripts, so that is not easy for me to create a .R file for each result. So, can I call data defined on Global Environment in R Markdown ? Thank You. 回答1: There are 2 ways to load

Problems writing code for an R DT summarizing result across multiple studies with collapsable child rows

核能气质少年 提交于 2020-05-11 12:11:11
问题 I'm trying to make an interactive table summarizing the top result of an outcome tested in multiple studies, and I would also like the user to access more detailed results via child rows. Only the "top" model with the smallest p-value is shown in the main table. Right now I have the relevant results into two data frames: 1. top result only, and 2. detailed results. I am merging these and nesting based on the top results which I want to display. library(DT) library(tidyr) library(dplyr)

Problems writing code for an R DT summarizing result across multiple studies with collapsable child rows

纵饮孤独 提交于 2020-05-11 12:11:09
问题 I'm trying to make an interactive table summarizing the top result of an outcome tested in multiple studies, and I would also like the user to access more detailed results via child rows. Only the "top" model with the smallest p-value is shown in the main table. Right now I have the relevant results into two data frames: 1. top result only, and 2. detailed results. I am merging these and nesting based on the top results which I want to display. library(DT) library(tidyr) library(dplyr)

Problems writing code for an R DT summarizing result across multiple studies with collapsable child rows

别来无恙 提交于 2020-05-11 12:11:07
问题 I'm trying to make an interactive table summarizing the top result of an outcome tested in multiple studies, and I would also like the user to access more detailed results via child rows. Only the "top" model with the smallest p-value is shown in the main table. Right now I have the relevant results into two data frames: 1. top result only, and 2. detailed results. I am merging these and nesting based on the top results which I want to display. library(DT) library(tidyr) library(dplyr)

Problems writing code for an R DT summarizing result across multiple studies with collapsable child rows

耗尽温柔 提交于 2020-05-11 12:10:47
问题 I'm trying to make an interactive table summarizing the top result of an outcome tested in multiple studies, and I would also like the user to access more detailed results via child rows. Only the "top" model with the smallest p-value is shown in the main table. Right now I have the relevant results into two data frames: 1. top result only, and 2. detailed results. I am merging these and nesting based on the top results which I want to display. library(DT) library(tidyr) library(dplyr)