Communication and Social Networks (Spring 2021)/R Lab 1: Difference between revisions

From CommunityData
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:


[[File:Rstudio.png|thumb|upright=2.6|center|RStudio image from [https://en.wikipedia.org/wiki/RStudio Wikipedia]]]
[[File:Rstudio.png|thumb|upright=2.6|center|RStudio image from [https://en.wikipedia.org/wiki/RStudio Wikipedia]]]
If you have had problems getting R installed, then look over [https://techvidvan.com/tutorials/install-r/ this tutorial] again and if you still can't get it then reach out on Discord and we'll get it figured out.


* Once you have RStudio installed, read and watch the [https://rladiessydney.org/courses/ryouwithme/01-basicbasics-0/ BasicBasics 1 and 2] tutorials from the R-Ladies Sydney group.
* Once you have RStudio installed, read and watch the [https://rladiessydney.org/courses/ryouwithme/01-basicbasics-0/ BasicBasics 1 and 2] tutorials from the R-Ladies Sydney group.
Line 13: Line 15:
* [https://rmarkdown.rstudio.com/lesson-1.html Install R Markdown]
* [https://rmarkdown.rstudio.com/lesson-1.html Install R Markdown]


* Right-click on [https://github.com/jdfoote/Communication-and-Social-Networks/raw/spring-2021/week_2/r_markdown_example.Rmd this document], save it, and then open it in RStudio.
* Right-click on [https://github.com/jdfoote/Communication-and-Social-Networks/raw/spring-2021/week_3/r_markdown_example.Rmd this document], save it, and then open it in RStudio.
** Read through the file and try "knitting" it to an output document
** Read through the file and try "knitting" it to an output document
** Finish the exercise at the end and see how that changes the output
** Finish the exercise at the end and see how that changes the output

Latest revision as of 18:50, 28 January 2021

This lab has three goals:

  1. Get your R environment is set up correctly
  2. Introduce you to the idea of R Markdown files
  3. Create your first network graph

You should have R and R Studio installed by now. In practical terms, that means there should be an RStudio icon somewhere on you computer. If you open RStudio, it should look something like this:

RStudio image from Wikipedia

If you have had problems getting R installed, then look over this tutorial again and if you still can't get it then reach out on Discord and we'll get it figured out.

  • Once you have RStudio installed, read and watch the BasicBasics 1 and 2 tutorials from the R-Ladies Sydney group.
  • Right-click on this document, save it, and then open it in RStudio.
    • Read through the file and try "knitting" it to an output document
    • Finish the exercise at the end and see how that changes the output