Skip to content

Commit

Permalink
Update workflow-basics.Rmd (hadley#429)
Browse files Browse the repository at this point in the history
typo
  • Loading branch information
sibusiso16 authored and hadley committed Oct 3, 2016
1 parent 963369d commit ab429dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions workflow-basics.Rmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Workflow: basics

You've now have some experience running R code. I didn't give you many details, but you've obviously figured out the basics, or you would've thrown this book away in frustration! Before we go any further, let's make sure you've got a solid foundation in running R code and, and that you know about some of the most helpful RStudio features.
You now have some experience running R code. I didn't give you many details, but you've obviously figured out the basics, or you would've thrown this book away in frustration! Before we go any further, let's make sure you've got a solid foundation in running R code and, and that you know about some of the most helpful RStudio features.

## Coding basics

Expand All @@ -26,7 +26,7 @@ object_name <- value

When reading that code say "object name gets value" in your head.

You will make lots of assignments and `<-` is a pain to type. Don't be lazy and use `=`: it will work, but it will cause confusion later. Instead, use RStudio's keyboard shortcut: Alt + - (the minus sign). Notice that RStudio automagically surrounds `<-` with spaces, which is a good code formatting practice. Code is miserable to read on a good day, so giveyoureeyesabreak and use spaces.
You will make lots of assignments and `<-` is a pain to type. Don't be lazy and use `=`: it will work, but it will cause confusion later. Instead, use RStudio's keyboard shortcut: Alt + - (the minus sign). Notice that RStudio automagically surrounds `<-` with spaces, which is a good code formatting practice. Code is miserable to read on a good day, so giveyoureyesabreak and use spaces.

## What's in a name?

Expand Down Expand Up @@ -139,7 +139,7 @@ Here you can see all of the objects that you've created.
training your brain to notice even the tiniest difference will pay off
when programming.)
1. Tweak the each of the following R commands so that they run correctly:
1. Tweak each of the following R commands so that they run correctly:
```{r, eval = FALSE}
library(ggplot2)
Expand Down

0 comments on commit ab429dc

Please sign in to comment.