diff --git a/01-intro-to-R.Rmd b/01-intro-to-R.Rmd index 2f46095..8c00480 100644 --- a/01-intro-to-R.Rmd +++ b/01-intro-to-R.Rmd @@ -66,7 +66,7 @@ doesn't work. Now we're stuck over in the console. The `+` sign means that it's still waiting for input, so we can't type in a new command. To get out of this press the `Esc` key. This will work whenever you're stuck with that `+` sign. -It's great that R is a glorified caluculator, but obviously +It's great that R is a glorified calculator, but obviously we want to do more interesting things. To do useful and interesting things, we need to assign _values_ to @@ -106,7 +106,7 @@ In RStudio, typing Alt + - (push Alt at the - What happens if we change `a` and then re-add `a` and `b`? - Does it work if you just change `a` in the script and then add `a` and `b`? Did you still get the same answer after they changed `a`? If so, why do you think that might be? -- We can also assign a + b to a new variable, `c`. How would you do this? +- We can also assign `a + b` to a new variable, `c`. How would you do this? ## Notes on objects diff --git a/02-starting-with-data.Rmd b/02-starting-with-data.Rmd index fa734a4..f61577d 100644 --- a/02-starting-with-data.Rmd +++ b/02-starting-with-data.Rmd @@ -73,10 +73,10 @@ Wow... that was a lot of output. At least it means the data loaded properly. Let head(metadata) ``` -We've just done two very useful things. +We've just done two very useful things: + 1. We've read our data in to R, so now we can work with it in R -2. We've created a data frame (with the read.csv command) the -standard way R works with data. +2. We've created a data frame (with the `read.csv` command) the standard way R works with data. # What are data frames? @@ -97,7 +97,7 @@ the data, you may want to keep these columns as `character`. To do so, `read.csv()` and `read.table()` have an argument called `stringsAsFactors` which can be set to `FALSE`: -Let's now check the __str__ucture of this `data.frame` in more details with the +Let's now check the structure of this `data.frame` in more details with the function `str()`: ```{r, purl=FALSE}