Skip to content
This repository was archived by the owner on Aug 4, 2020. It is now read-only.

Some small fixes #90

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 01-intro-to-R.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -106,7 +106,7 @@ In RStudio, typing <kbd>Alt</kbd> + <kbd>-</kbd> (push <kbd>Alt</kbd> 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

Expand Down
8 changes: 4 additions & 4 deletions 02-starting-with-data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand All @@ -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}
Expand Down