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

Simplifying assumptions

We can complicate the example as much as we want, but to keep the simulation simple (although not trivial), we are going to assume a couple of things upfront. First, we assume that each sale record contains a single type of food. If a person buys two or more different types of foods, then each of those types will produce a different sale record. However, each sale can contain as many portions of the foods as we want, as long as they are the same type (combination of macronutrients and protein sources). This is the most important simplification, since company sales orders normally have various items per sale, but it will allow us to focus on the programming side of things.

Second, we will not worry about the relation ...

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