Editing Statistics and Statistical Programming (Fall 2020)/pset0
From CommunityData
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 8: | Line 8: | ||
:'''PC3.''' (a) Create and save a new RStudio "Project" ('.Rproj'). Then, within your new project, (b) create and save a new RMarkdown file ('.Rmd'). Finally, (c) write a combination of text notes and R code in your RMarkdown file and "knit" the output into HTML and PDF. I recommend reproducing and extending some of the examples from the [https://communitydata.science/~ads/teaching/2020/stats/r_tutorials/w01-R_tutorial.html R tutorial] such as the following: | :'''PC3.''' (a) Create and save a new RStudio "Project" ('.Rproj'). Then, within your new project, (b) create and save a new RMarkdown file ('.Rmd'). Finally, (c) write a combination of text notes and R code in your RMarkdown file and "knit" the output into HTML and PDF. I recommend reproducing and extending some of the examples from the [https://communitydata.science/~ads/teaching/2020/stats/r_tutorials/w01-R_tutorial.html R tutorial] such as the following: | ||
* Complete an arithmetic problem | * Complete an arithmetic problem | ||
* | * Create a variable (assign a value to a variable) | ||
* Perform an operation on your variable (e.g., create a variable called <code>x</code> that | * Perform an operation on your variable (e.g., create a variable called <code>x</code> that has a numerical value and multiply it by some other number. | ||
* Create variables of different classes and get R to tell you the class of each variable using the <code>class()</code> function. | * Create variables of different classes and get R to tell you the class of each variable using the <code>class()</code> function. | ||
* Install and load a library. Maybe the <code>openintro</code> package that accompanies our textbook. | |||
* Install and load a library. | |||
:'''PC4.''' Upload your .Rmd file and knitted .pdf file to [https://canvas.northwestern.edu/courses/122522/assignments/ the appropriate assignment on Canvas]. | :'''PC4.''' Upload your .Rmd file and knitted .pdf file to [https://canvas.northwestern.edu/courses/122522/assignments/ the appropriate assignment on Canvas]. |