Quantcast
Channel: r software hub
Viewing all articles
Browse latest Browse all 1015

The Lady Loves Statistics

$
0
0

By Mango Blogger

chocolate for blog

By Paulin Shek

Working at Mango is generally busy, fun, but also at times, quite surreal. Lunchtime conversation amongst the consultants can get quite animated, especially when Andy Nicholls, the Head of Consultancy, finds a topic that he has a strong opinion on.

Today, it was chocolate.

In Andy’s mind, chocolate falls into two categories: “Chocolate I would eat after swimming” and “Chocolate I would not eat after swimming”.

I severely questioned his expertise, so now it is up to me to prove him wrong. So off to the supermarket I went, for my all-important “research”.

Andy’s classification of these was as follows – * indicates chocolate bars that Andy was uncertain about.

table 1

Now for my part: I collected data from the chocolate bars, collecting fields such as Weight, Calories, Protein etc. which were readily found on the wrapper. I also made flags for whether a chocolate bar has nuts, wafer, caramel etc.

##               Weight Calories  Fat Carb Protein Salt HasNuts HasWafer
## KitKat Chunky 40.0 516 25.6 65.1 5.4 0.18 0 1
## Boost 48.5 515 28.5 58.5 5.9 0.30 0 0
## Dairy Milk 45.0 530 30.5 56.5 7.5 0.23 0 0
## Galaxy ...read more

Source:: r-bloggers.com


Viewing all articles
Browse latest Browse all 1015

Trending Articles