Socratizer

Online learning platform

How to Submit Assignments - RMarkdown Basics

Assignments should be submitted through RMarkdown “worksheets.”

After each class, a worksheet will be available for download on the course page. This worksheet contains exercises with blanks for you to fill in with your code or solutions. Upon completing an assignment, you should upload it via the course page.

What is RMarkdown?

RMarkdown is a file format that integrates text, code, and the results of code execution (tables, printouts, figures, etc.).

One of the best actions you can take is to become acquainted with RMarkdown:

https://rmarkdown.rstudio.com/lesson-1.html

Essentials of RMarkdown for Assignment Submission

    # This is a top-level header (counterpart of <h1> in HTML)
    ## This is a second level header 

    *This text will be in italic*, **this text will be in bold**, ***and this will be in both italic and bold***.


    1. Ordered lists are automatically numbered.
    3. The numbering in the source file is irrelevant 
    * You can create hierarchical lists
      * no biggie
    ```{r}
    hist(rnorm(200)) # histogram of 200 random numbers from a normal distribution
    # The backticks that start and end a code block are typed using the tilde key (`~`), not the single quote key (')
    # Remember, backticks are not apostrophes! 
    ```