Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
r_workshop2 [2019/09/16 17:26]
fgabriel1891
r_workshop2 [2021/10/13 20:03] (current)
lsherin
Line 1: Line 1:
 +<WRAP group>
 +<WRAP centeralign>​
 +<WRAP important>​
 +<wrap em> __MAJOR UPDATE__ </​wrap> ​
 +
 +<wrap em> As of Fall 2021, this wiki has been discontinued and is no longer being actively developed. </​wrap> ​
 +
 +<wrap em> All updated materials and announcements for the QCBS R Workshop Series are now housed on the [[https://​r.qcbs.ca/​workshops/​r-workshop-02/​|QCBS R Workshop website]]. Please update your bookmarks accordingly to avoid outdated material and/or broken links. </​wrap>​
 +
 +<wrap em> Thank you for your understanding,​ </​wrap>​
 +
 +<wrap em> Your QCBS R Workshop Coordinators. </​wrap>​
 +
 +</​WRAP>​
 +</​WRAP>​
 +<WRAP clear></​WRAP>​
 +
 ======= QCBS R Workshops ======= ======= QCBS R Workshops =======
  
Line 9: Line 26:
 ====== Workshop 2: Loading and manipulating data ====== ====== Workshop 2: Loading and manipulating data ======
  
-Developed by: Johanna Bradie, Vincent Fugère, Thomas Lamy, Gabriel Muñoz+Developed by: Johanna Bradie, Vincent Fugère, Thomas Lamy
  
 **Summary:​** In this workshop, you will learn how to load, view, and manipulate your data in R. You will learn basic commands to inspect and visualize your data, and learn how to fix errors that may have occurred while loading your data into R. In addition, you will learn how to write an R script, which is a text file that contains your R commands and allows you to rerun your analyses in one simple touch of a key (or maybe two, or three…)! We have included an advance users section where we will introduce tidyr and dplyr, two powerful tools to manage and re-format your dataset, as well as apply simple or complex functions on subsets of your data. This workshop will be useful for those progressing through the entire workshop series, but also for those who already have some experience in R and would like to become proficient with new tools and packages. **Summary:​** In this workshop, you will learn how to load, view, and manipulate your data in R. You will learn basic commands to inspect and visualize your data, and learn how to fix errors that may have occurred while loading your data into R. In addition, you will learn how to write an R script, which is a text file that contains your R commands and allows you to rerun your analyses in one simple touch of a key (or maybe two, or three…)! We have included an advance users section where we will introduce tidyr and dplyr, two powerful tools to manage and re-format your dataset, as well as apply simple or complex functions on subsets of your data. This workshop will be useful for those progressing through the entire workshop series, but also for those who already have some experience in R and would like to become proficient with new tools and packages.
Line 17: Line 34:
  
 Download the R script and data for this lesson: ​ Download the R script and data for this lesson: ​
-  - [[http://​qcbs.ca/​wiki/​_media/​script_workshop2.R|Script]]+  - [[http://​qcbs.ca/​wiki/​_media/​script_workshop02-en.r|Script]]
   - [[http://​qcbs.ca/​wiki/​_media/​co2_good.csv|Dataset 1]]   - [[http://​qcbs.ca/​wiki/​_media/​co2_good.csv|Dataset 1]]
-  - [[http://qcbs.ca/wiki/_media/​co2_broken.csv|Dataset 2]]+  - [[https://raw.githubusercontent.com/QCBSRworkshops/workshop02/​dev/​workshop02-en/​data/​co2_broken.csv|Dataset 2]] (//After following this link, right-click on the page to save the file as .csv//).
  
 ===== Learning Objectives ===== ===== Learning Objectives =====
  
 1. Creating an R project 1. Creating an R project
 +
 2. Writing a script 2. Writing a script
 +
 3. Loading, exploring and saving data 3. Loading, exploring and saving data
 +
 (For advanced users) (For advanced users)
 +
 4. Learn to manipulate data frames with tidyr, dplyr, maggritr 4. Learn to manipulate data frames with tidyr, dplyr, maggritr
  
Line 48: Line 69:
  
 Place similar files inside of their own folders ​ Place similar files inside of their own folders ​
-Keep version ​track+ 
 +Keep track of versions
  
 {{:​0_folderdata1.png?​400|}} {{:​0_folderdata1.png?​400|}}