2023-06-12
I hope that you will be fairly comfortable with:
https://datavizs23.classes.andrewheiss.com/slides/15-slides.html#62
start.qmd (this file), data_import.qmd, and data_analysis.qmd
/docs folder (including all output and code)data_* files together, exercises are interspersed in the filesYou will benefit greatly from doing things cleverly and establishing good habits from the start
I have prepared a handout containing the most frequently used shortcuts
Meme credit: https://bookdown.org/pdr_higgins/rmrwr/introduction-to-reproducibility.html#cleaning-and-analyzing-your-data
RstudioQuartoIntroIf it doesn’t, you need to navigate your file explorer/finder to where you saved the course files, and open the file RstudioQuartoIntro.Rproj
ctrl+alt/option+i creates a new code chunk# creates a heading, ## makes a level 2 headingfunctions() and objects
.! Commas are used to separate things.# is a comment() tied to it,%>% - the magrittr pipe (shift+ctrl+m)|> - the base pipe?function in console - ie. ?histclass(object) to checkvector is a string of valuescharacter (chr)factor (fct)numerical (num, int, or dbl)Single values
Multiple values (a vector)
Dataframe
%>%) eller ggplot (som hålls samman med +) så spelar det ingen roll var bland raderna markören är, hela blocket körs ändå%>% eller |> beroende på vad du valt i Rstudio).Next: importing, inspecting and visualizing data