Skip to content

Commit

Permalink
Merge pull request #9 from piruty/fix_objects_rmd_num_to_int
Browse files Browse the repository at this point in the history
fix code in "5 R Objects" page
  • Loading branch information
garrettgman authored Nov 12, 2018
2 parents ed2885d + a838133 commit 1d30ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objects.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ text <- c("ace", "hearts")
You may wonder why R uses multiple types of vectors. Vector types help R behave as you would expect. For example, R will do math with atomic vectors that contain numbers, but not with atomic vectors that contain character strings:

```r
sum(num)
sum(int)
## 6

sum(text)
Expand Down

0 comments on commit 1d30ab0

Please sign in to comment.