Skip to Content
R Programming By Example
book

R Programming By Example

by Omar Trejo Navarro
December 2017
Beginner to intermediate
470 pages
12h 29m
English
Packt Publishing
Content preview from R Programming By Example

Client birth dates, gender, and ratings

A problem you will encounter when programming is that sometimes a function you thought would be general enough needs to be changed in some way. Sometimes the right decision is to change the existing function, but other times, the right decision is to create a new function (maybe based on the original one) that can be modified as needed without breaking old code that used it. This happens when the assumptions for the function are not met, and can't be easily accommodated.

In our case, what happens if we want to use the clients data to graph our clients' birth dates using the year in the x axis, month in the y axis, color by gender, and show the rating adjusting the size of the dots? Well, the x axis ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Efficient R Programming

Efficient R Programming

Colin Gillespie, Robin Lovelace
R Programming

R Programming

Jared P. Lander

Publisher Resources

ISBN: 9781788292542Supplemental Content