R-Studio for Beginners

, , ,

Agenda

  • Go to the website(https://rstudio.wooster.edu/) – we shall use the web version, not desktop
    • Log in with Wooster email and password
  • A quick tour of the interface
  • How to import data set(upload on the lower right panel)
  • Basic data analysis(filtering)
  • Basic data visualization with ggplot2.
  • Knitting the file
  • How to access documentation online. (R Help as well)

Commands

List of commands I will use for my presentation

  • cereal_2
  • filter
  • select
  • library
  • ggplot2
  • geom.boxplot()
  • %>%
  • ==
  • view

Our R Chunks

1st Chunk

library(readr)
cereal_2 <- read_csv(“cereal 2.csv”)
view(cereal_2)

2nd Chunk

library(dplyr)
cereal_2%>%filter(`mfr`== “K”)%>%filter(calories == 110)
cereal_2%>%select(calories)

3rd Chunk

library(ggplot2)
cereal_2%>%ggplot(aes(x=calories, y=mfr))+geom_boxplot()

Recording

Screen capture recording of the workshop