Coder Social home page Coder Social logo

mcdonn / 2019-lsa-dynamic-docs Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 2.05 MB

Materials for the workshop "Putting it all together with Knitr, LaTeX, and R Markdown", which is the second in a series entitled, "Data Summer Camp: Mini-course on Reproducible Research" at the Linguistics Society of America's 2019 Summer Institute hosted by the University of California, Davis.

TeX 1.16% HTML 98.84%

2019-lsa-dynamic-docs's Introduction

Basics

  • Date: Wednesday, July 10, 2019
  • Time: 10:00 AM - 12:00 PM
  • Location: Olson Hall 207

Instructors

Materials, Software

Participants will be required to bring laptop computers to the workshop running OS-X (Mac) or Windows (mobile systems such as iPads, Android tablets, and Chromebooks are not suitable for the workshop). Prior to the workshop, please follow these instructions for installing all of the necessary software, which include R, R Studio, and (optionally) LaTeX.

Dynamic documents with R Markdown

These slides summarize the basics of dynamic documents with R Markdown. For a fuller discussion, see Yui Xie's description of knitr. Also, see below for several helpful links.





Exercises

These exercises contain some sample data from a typological study, a phonetics study, and a study of language attitudes. The exercises purposely use rather simple R code. The goal of the exercises is for you to feel comfortable using dynamic documents with knitr with R Markdown or LaTeX.

There are two ways to download the materials for the exercises in class:

  1. If you are familiar with git and GitHub, you can simply clone this repo in R Studio.

  2. If option 1 does not make sense to you, follow the following steps:

    • Click the green button above.

    • Then, click Download Zip.

    • Unzip the file and save the folder "2019-lsa-dynamic-docs-master" in an easy-to-find location.
    • Open the file "2019-lsa-dynamic-docs.Rproj" by clicking it or in R Studio selecting "File > Open Project..." and navigating to "2019-lsa-dynamic-docs.Rproj".

Please install the following packages:

install.packages("tidyverse", "knitr", "kableExtra", "leaflet", "wesanderson","sjPlot","h2o","iml","summarytools")

Please take a look at...

*If you'd like a more information to reference have a look at The Definitive Guide to R Markdown

*If you're feeling a bit confused or intimadated by all of this, feel free to take some time to look over this very gentle introduction to R Markdown or this other short introduction

Exercise 1: Basics of R Markdown

This is a very basic exercise to get you familiar with R Markdown.

Exercise 2: Typology of causatives and applicatives slide

This is a very basic example of slides using knitr and R Markdown. First, use the knit command to compile the document. Then, read through the document and look out for commented sections in between <!-- and -->. For each of these, we list different tasks to complete throughout the document. We'll be walking around to help you complete these tasks.

Exercise 3: Besemah stress paper

This is a basic example of a dynamic document. First, use the knit command to compile the document. Then, read through the document and look out for commented sections in between <!-- and -->. For each of these, we list different tasks to complete throughout the document. We'll be walking around to help you complete these tasks.

Exercise 4: Language Attitudes

This is a more advanced example of a dynamic document. We'll be walking around to help you complete these tasks.

Support

This material is based upon work supported by the National Science Foundation under grant SMA-1745249 to the University of Hawai‘i at Mānoa. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.

2019-lsa-dynamic-docs's People

Contributors

mcdonn avatar rentzb avatar

Stargazers

Jordi Martínez Martínez avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.