Tutorial by Examples

The most important part of your RMD file is the YAML header. For writing an academic paper, I suggest to use PDF output, numbered sections and a table of content (toc). --- title: "Writing an academic paper in R" author: "Author" date: "Date" output: pdf_documen...
If you have no *.bib file, you can use a references field in the document’s YAML metadata. This should include an array of YAML-encoded references, for example: --- title: "Writing an academic paper in R" author: "Author" date: "Date" output: pdf_document: ...
By default, pandoc will use a Chicago author-date format for citations and references. To use another style, you will need to specify a CSL 1.0 style file in the csl metadata field. In the following a often used citation style, the elsevier style, is presented (download at https://github.com/citatio...

Page 1 of 1