Lab Assignment 6 (Lab projects?)

  1. Go though LabAssignment6.pdf LabAssignment6.pdf

  2. Download LabAssignment6.Rmd (LabAssignment6.Rmd, egyptianCotton.csv) in RStudio and run codes inside. Things should be exactly same as LabAssignment6.pdf.

  3. Download, open LabAssignment6_butter.Rmd LabAssignment6_butter.Rmd and save as a new Rmd file for your own Lab Assignment submission. Knit this Rmd file to see if you can make a HTML, PDF or Word. If you couldn’t, just use RStudio Cloud or the Binder RStudio Binder set by Po.

  4. Run/add/edit/delete the codes in your own copy of LabAssignment6_butter.Rmd and add/edit/delete some writings. Knit to see how the .pdf looks like. Tidy up the codes and writings. Knit and submit!

Path for data/files/success

  1. Set working directory.

  2. Put you data egyptianCotton.csv into a good directory.

  3. 📊 Which of the following do you prefer?

    🦃

    ec <- read.csv("/Users/nicepo/IU_is_no1/egyptianCotton.csv")

    🦆

    ec <- read.csv("C:\\Users\\nicepo\\IU_is_no1\\egyptianCotton.csv")

    🦚

    ec <- read.csv("egyptianCotton.csv")

    🦉

    ec <- read.csv("data/egyptianCotton.csv")

    🦢

    ec <- read.csv("https://ucdavis-sta-100-spring-2021.github.io/polabs/egyptianCotton.csv")
  4. Understand your path for success! https://en.wikipedia.org/wiki/Path_(computing)

Help/Documentation

There is no secret ingredient. – Mr. Ping 🍜

Read the R Documentation of every functions you have seen.

?rnorm
?dim
?read.csv
?head
?anova
?aov
?TukeyHSD
?par
?boxplot
?hist
?plot

How Po knows all those built-in functions in R?

R tutorials that help you survive 🦃