[For this exercise, first write down your answer, without using R. Then, check your answer using R.] Answers to the exercises are available here. Exercise 1 Consider two vectors, x, y x=c(4,6,5,7,10,9,4,15) y=c(0,10,1,8,2,3,4,1) What is the value of: x*y Exercise 2 Consider two vectors, a, b a=c(1,2,4,5,6) b=c(3,2,4,1,9) What is the value of: cbind(a,b) Exercise […]

## Sampling Exercise Part 1

In this Exercise, we will dive quickly through some basic sampling methods. Follow along this series to use these methods later for our decision trees modelling exercise. We will sample using the package caTools and caret. This is a beginner level exercise. Please refer to the help section for set.seed(), sample.split(),createDataPartition(), and createFolds() functions. You […]

## Bonus: Rebuild a figure (step-by-step)

We just added this week’s set of bonus exercises! Bonus exercises are weekly exercises sets, available to subscribers to our weekly newsletter. Please sign up using the form on the right, and receive further details by email how to download the bonus exercises (and solutions, of course). This week’s bonus exercises aim to practise building […]

## Come tell us what you want!

Welcome! We are making this post today to address a burning question in our minds. And you can help us with! We just expanded our author team for creating exercise sets once more. One of our goals is to deliver content that you really want to practice with and incorporate in your daily R work […]

## Descriptive Analytics-Part 3 : Outlier treatment

Descriptive Analytics is the examination of data or content, usually manually performed, to answer the question “What happened?”. In order to be able to solve this set of exercises you should have solved the part 0 and’part 1 , and part 2 of this series but also you should run this script which contain some […]

## Regular Sequences Vol. 2 Exercises

[For this exercise, first write down your answer, without using R. Then, check your answer using R.] Answers to the exercises are available here. Exercise 1 if x <- c(a = 1, b = 2,c=3,d=4) What is the output for the code: seq(5,11,along.with =x) Exercise 2 If x= seq(4,12,4) , what is the output for […]

## Bonus: Avoiding for-loops exercises

We just added our first set of bonus exercises! Bonus exercises are weekly exercises sets, available to subscribers to our weekly newsletter. Please sign up using the form on the right, and receive further details by email how to download the bonus exercises (and solutions, of course). This week’s bonus exercises aim to practise vectorization, […]

## New Expansion of the R Course Finder!

On the 1st of september we launched R course finder, an online directory that helps you to find the right R course quickly. With so many R courses available online, we thought it was a good idea to offer a tool that helps people to compare these courses, before they decide where to spend their […]

## Descriptive Analytics-Part 2 : Data Imputation

Descriptive Analytics is the examination of data or content, usually manually performed, to answer the question “What happened?”. In order to be able to solve this set of exercises you should have solved the part 0 and’part 1 of this series, in case you haven’t you can find the solutions to run them in your […]

## Regular Expressions Exercises – Part 1

A common task performed during data preparation or data analysis is the manipulation of strings. Regular expressions are meant to assist in such and similar tasks. A regular expression is a pattern that describes a set of strings. Regular expressions can range from simple patterns (such as finding a single number) thru complex ones (such […]