Articles by Peter Prevos

Data Pseudo-Science: Developing a Biorhythm Calculator

March 29, 2017 | 0 Comments

Data science is a pretty serious occupation. What about data pseudoscience? This blog post shows how to calculate your biorhythm using R. Continue reading → The post Data Pseudo-Science: Developing a Biorhythm Calculator appeared first on The Devil is in the Data.
[Read more...]

Euler Problem 17: Number Letter Counts

March 22, 2017 | 0 Comments

A solution in the R language to Euler Problem 17: If all the numbers from 1 to 1000 inclusive were written out in words, how many letters would be used? Continue reading → The post Euler Problem 17: Number Letter Counts appeared first on The Devil is in the Data.
[Read more...]

Euler Problem 16: Power Digit Sum

March 15, 2017 | 0 Comments

A solution in the R language to Euler Problem 16. What is the sum of the digits of the number 2^1000? This post provides a solution using basic r code. Continue reading → The post Euler Problem 16: Power Digit Sum appeared first on The Devil is in the Data.
[Read more...]

Tic Tac Toe Simulation — Random Moves

March 12, 2017 | 0 Comments

Tic Tac Toe might be a futile children’s game but it can also teach us about artificial intelligence. Tic Tac Toe, or Naughts and Crosses, is a zero-sum game with perfect information. Both players know exactly what the other did and when nobody … Continue reading → The post Tic Tac ...
[Read more...]

Euler Problem 15: Pathways Through a Lattice

March 9, 2017 | 0 Comments

Solution in the R language to project Euler Problem 15. The problem asks to calculate the number of pathways through a 20 by 20 grid. Continue reading → The post Euler Problem 15: Pathways Through a Lattice appeared first on The Devil is in the Data.
[Read more...]

Create Air Travel Route Maps in ggplot: A Visual Travel Diary

March 6, 2017 | 0 Comments

Create Air Travel Route Maps that look like airline route maps you find in aeroplane magazines using ggplot. Spatially visualise your travel diary. Continue reading → The post Create Air Travel Route Maps in ggplot: A Visual Travel Diary appeared first on The Devil is in the Data.
[Read more...]

Euler Problem 14: Longest Collatz Sequence

March 1, 2017 | 0 Comments

Euler Problem 14 looks at the Collatz Conjecture. These playful sequences, named after German mathematician Lothar Collatz (1910–1990), cause mathematicians a lot of headaches. This video introduces the problem much better than I can describe it. Euler Problem 14 Definition The following iterative … Continue reading → The post Euler Problem 14: Longest Collatz Sequence appeared ... [Read more...]

Euler Problem 13: Large Sum of 1000 Digits

February 22, 2017 | 0 Comments

Euler Problem 13 asks to add one hundred numbers with fifty digits. This seems like a simple problem where it not that most computers are not designed to deal with numbers with a lot of integers. For example:   When asking … Continue reading → The post Euler Problem 13: Large Sum of 1000 Digits appeared ... [Read more...]

Euler Problem 12: Highly Divisible Triangular Number

February 15, 2017 | 0 Comments

Proposed solution for Euler Problem 12 in the R language. What is the value of the first triangle number to have over five hundred divisors? Continue reading → The post Euler Problem 12: Highly Divisible Triangular Number appeared first on The Devil is in the Data.
[Read more...]

Percentile Calculations in Water Quality Regulations

February 9, 2017 | 0 Comments

Demonstrating the various ways percentile calculations can be undertaken in R and specifically with respect to measuring turbidity in water supplies. Continue reading → The post Percentile Calculations in Water Quality Regulations appeared first on The Devil is in the Data.
[Read more...]

Euler Problem 11: Largest Product in a Grid

February 9, 2017 | 0 Comments

Solution to Euler Problem 11 in the R language. What is the greatest product of four adjacent numbers in the same direction in the 20 by 20 grid? Continue reading → The post Euler Problem 11: Largest Product in a Grid appeared first on The Devil is in the Data.
[Read more...]

Euler Problem 10: Summation of Primes

February 1, 2017 | 0 Comments

A solution in the R language for statistical computing to find the solution the Euler Problem 10: Find the sum of all primes below two million. Continue reading → The post Euler Problem 10: Summation of Primes appeared first on The Devil is in the Data.
[Read more...]

SCADA spikes in Water Treatment Data

January 29, 2017 | 0 Comments

SCADA data is essential in operating water treatment plants. Spikes in the data can indicate problems. How can you detect SCADA spikes using the R language? Continue reading → The post SCADA spikes in Water Treatment Data appeared first on The Devil is in the Data.
[Read more...]

Euler Problem 9 : Special Pythagorean Triple

January 24, 2017 | 0 Comments

Solution to Euler Problem 9 in the R Language: Find the Pythagorean triple for which a+b+c equals 1000. Continue reading → The post Euler Problem 9 : Special Pythagorean Triple appeared first on The Devil is in the Data. [Read more...]

Trumpworld Analysis : Ownership Relations in his Business Network

January 23, 2017 | 0 Comments

Analysis of the ownership relationships between organisations associated with Donald J. Trump. A social network analysis of Trumpland using the igraph package in R. Continue reading → The post Trumpworld Analysis : Ownership Relations in his Business Network appeared first on The Devil is in the Data.
[Read more...]

Finding antipodes using the globe and ggmap packages

January 20, 2017 | 0 Comments

The antipode of any place on Earth is the point on the Earth's surface that is diametrically opposite to it. How can you use ggmap to find antipodes? Continue reading → The post Finding antipodes using the globe and ggmap packages appeared first on Data Science with R.
[Read more...]

Euler Problem 8: Largest Product in a Series

January 18, 2017 | 0 Comments

Solution to Euler Problem 8 in the R Language for Statistical Computing. Find the thirteen adjacent digits in the 1,000-digit number that have the greatest product. What is the value of this product? Continue reading → The post Euler Problem 8: Largest Product in a Series appeared first on The Devil is in ... [Read more...]

Euler Problem 7: 10,001st Prime

January 16, 2017 | 0 Comments

A solution in the R language for statistical computing to find the solution the Euler Problem 7: Find the 10,001st prime number. Continue reading → The post Euler Problem 7: 10,001st Prime appeared first on Data Science with R. [Read more...]

Euler Problem 6: Sum Square Difference

January 5, 2017 | 0 Comments

Solution to Euler Problem 6: Sum Square Difference in the R language for statistical computing. Continue reading → The post Euler Problem 6: Sum Square Difference appeared first on The Devil is in the Data. [Read more...]
1 2 3 4 5

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)