From the course: R for Data Science: Lunch Break Lessons

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Fun

Fun

- [Instructor] All work and no play is, well, no fun, and R has a couple of packages that are amusing to play with. Let's take a look at a couple of those. Now, remember, any time I type in "library", you can assume that I've also typed in "install.packages" for the corresponding library. So, let's start with a library for fortunes. Now, fortunes is an amusing little package that gives us a fortune related to R any time we type it in. So, let's type it in. Fortune, parenthesis, and I hit return and I get a little quote. In this case, it's Frank, about the SAS Institute. If I type that in again, I will get another quote, so it gives me a series of R-related quotes that people have found amusing at different times. You might be interested in all of the quotes contained in the fortunes package. You can put that into a variable. I'll create one called "allfortunes", and into "allfortunes" I'm going to read.fortunes, there it is, and I hit return, and now what I have is a data set, a data…

Contents