knitr::opts_chunk$set(echo = TRUE) update.packages("PSUEC469") library(PSUEC469) # Other libraries may be required. set.seed(PSUID) # make random results reproducible
This is a simple homework assignment template. Notice that in the previous line we can create a header for our problem number by using a single "#". The text is then automatically bolded and indented. Below we will create a sublist. This should be used if problems have more than one part.
a. "PROBLEM NUMBER ONE, PART A"
b.
c.
d.
e.
Suppose we need to input an R chunk into our homework file. In this case, the following syntax should be used. Note that "'''" signifies we are include chunks of code (We may also tweak the options as necessary).
#input R code here. Examples: #define R list x = c(1,2,3,4,5) #make plot plot(x)
Below the R code, we can provide additional descriptions and/or explain our code more thoroughly.
#again, we can input our R code here.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.