Lec08
Interactive apps with Shiny.
Announcements
- Have output from code inside an
.Rmd
file appear in console and plot window, instead of inside.Rmd
source code: RStudio Menu Bar -> Tools -> Global Options… -> R Markdown - Mini-Presentations at each Wednesday Library 105A session.
library(dplyr)
# Kyra's favorite nubmer is 9
set.seed(9)
preso <- sample(
c("Alden", "Alex", "Amanda", "Andrea", "Bianca",
"Brenda", "Connor", "Emily", "James",
"Katherine", "Kyra", "Nina", "Shania",
"Trisha", "Yuchen", NA)) %>%
matrix(nrow=4) %>%
data.frame()
colnames(preso) <- paste("HW-", 1:4, sep="")
preso %>%
knitr::kable()
Here are the results, also posted in the Calendar page:
HW-1 | HW-2 | HW-3 | HW-4 |
---|---|---|---|
Andrea | Brenda | Nina | James |
Alden | Alex | Connor | Bianca |
Amanda | NA | Yuchen | Shania |
Trisha | Katherine | Emily | Kyra |
In-Class
- In-class demo of
Lec07.R
exercises. Note: solutions to all exercises are posted on GitHub inLec07_solutions.R
- Slides: Creating interactive apps with Shiny
- Packages to install:
shiny