Difference between revisions of "Course Materials Stat 370 Spring 2017"
(→Day 3: January 27, 2017) |
(→Day 2: January 24, 2017) |
||
Line 5: | Line 5: | ||
== Day 2: January 24, 2017 == | == Day 2: January 24, 2017 == | ||
− | We talked about getting and installing R and RStudio. We discussed some of the panels | + | We talked about getting and installing R and RStudio. We discussed some of the panels within RStudio including the editor and the console. I showed you dynamic documents with R-Markdown. We wrote an R Script, and a dynamic document. We talked about Markov chains. I presented several project ideas concerning Markov chains, including applications to baseball, and neuroscience. |
== Day 3: January 27, 2017 == | == Day 3: January 27, 2017 == |
Revision as of 21:39, 28 January 2017
Day 1: January 17, 2017
We had introductions and we went over the syllabus. We talked about our goals and dreams and reasons for taking this course. We also talked about our experience with R and with programming in general.
Day 2: January 24, 2017
We talked about getting and installing R and RStudio. We discussed some of the panels within RStudio including the editor and the console. I showed you dynamic documents with R-Markdown. We wrote an R Script, and a dynamic document. We talked about Markov chains. I presented several project ideas concerning Markov chains, including applications to baseball, and neuroscience.
Day 3: January 27, 2017
I started by discussing a default project idea (click here). You are not required to follow this suggestion. Some students are already doing something else, and that is fine. Synergies with other projects, outside of this class, are encouraged.
After I discussed this project idea, we talked about calling and writing functions, and passing arguments to functions. We discussed required/positional arguments and optional/named arguments. The function getwd() was an example of one with no arguments. We talked about getting help...from Google and from the console with the ? and ?? commands. E.g. type "?getwd" for help on getwd() or "??topic" if you don't know the exact function name. We talked about operators such as + - * / and ^. We talked about variables, though we have more to discuss here. We talked about sampling from the vector c("HomeRun", "Single", "Double", "Triple", "Out").