Skip to content

Commit

Permalink
Update 05-data-structures-part2.Rmd
Browse files Browse the repository at this point in the history
Corrected grammar and modified punctuation in response to issue #508
  • Loading branch information
aj-kozik authored and naupaka committed Jun 19, 2019
1 parent 2169686 commit 5e8e5a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _episodes_rmd/05-data-structures-part2.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ head(gapminder)
> >
> > What about a few arbitrary rows just for sanity (or insanity depending on your view)?
> > ## Tip: There are several ways to achieve this.
> > The solution here presents one form using nested functions. i.e. a function passed as an argument to another function. This might sound like a new concept but you are already using it in fact.
> > The solution here presents one form of using nested functions, i.e. a function passed as an argument to another function. This might sound like a new concept, but you are already using it!
> > Remember my_dataframe[rows, cols] will print to screen your data frame with the number of rows and columns you asked for (although you might have asked for a range or named columns for example). How would you get the last row if you don't know how many rows your data frame has? R has a function for this. What about getting a (pseudorandom) sample? R also has a function for this.
> > ~~~
> > gapminder[sample(nrow(gapminder), 5), ]
Expand Down

0 comments on commit 5e8e5a1

Please sign in to comment.