Working with a linguistic corpus using R: An introductory note with Indonesian Negating Construction

This is a repository for codes and datasets for the open-access <a href="http://ojs.linguistik-indonesia.org/index.php/linguistik_indonesia/article/view/71">paper</a> in <a href="http://ojs.linguistik-indonesia.org/index.php/linguistik_indonesia"><i>Linguistik Indonesia</i></a>, the flagship journal for the <a href="http://www.mlindonesia.org">Linguistic Society of Indonesia</a> (<i>Masyarakat Linguistik Indonesia </i>[MLI]) (cf. the link in the references below).<div><br></div><div>To cite the paper (in APA 6th style):</div><div><p>Rajeg, G. P. W., Denistia, K., & Rajeg, I. M. (2018). Working with a linguistic corpus using R: An introductory note with Indonesian negating construction. <i>Linguistik Indonesia</i>, <i>36</i>(1), 1–36. doi: <a href="https://doi.org/10.26499/li.v36i1.71">10.26499/li.v36i1.71</a></p><div><div><br></div><div>To cite this repository:</div><div>Click on the <code>Cite</code> (dark-pink button on the top-left) and select the citation style through the dropdown button (default style is <code>Datacite</code> option (right-hand side)<br></div><div><br></div><div>This repository consists of the following files:</div><div>1. Source <a href="https://rmarkdown.rstudio.com">R Markdown Notebook</a> (.<code>Rmd</code> file) used to write the paper and containing the R codes to generate the analyses in the paper.</div><div>2. Tutorial to download the Leipzig Corpus file used in the paper. It is freely available on the <a href="http://wortschatz.uni-leipzig.de/en/download">Leipzig Corpora Collection Download</a> page.</div><div>3. Accompanying datasets as images and .<code>rds</code> format so that all code-chunks in the R Markdown file can be run.</div><div>4. BibLaTeX and .<code>csl</code> files for the referencing and bibliography (with APA 6th style). </div><div>5. A snippet of the R session info after running all codes in the R Markdown file.</div><div>6. RStudio project file (.<code>Rproj</code>). Double click on this file to open an RStudio session associated with the content of this repository. See <a href="https://www.tidyverse.org/articles/2017/12/workflow-vs-script/">here</a> and <a href="https://r4ds.had.co.nz/workflow-projects.html">here</a> for details on Project-based workflow in RStudio.<br>7. A .<code>docx</code> template file following the basic stylesheet for <i>Linguistik Indonesia</i><br></div><div><br></div><div>Put all these files in the same folder (including the downloaded Leipzig corpus file)!</div><div><br></div><div>To render the R Markdown into MS Word document, we use the <code><a href="https://bookdown.org">bookdown</a></code> R package (Xie, 2018). Make sure this package is installed in R.</div><div><br></div><div><div>Yihui Xie (2018). bookdown: Authoring Books and Technical Documents with R Markdown. R package version 0.6.</div></div><div><br></div><div><br></div></div></div>