R Blog

## R Exercises for Beginners – 11-20 – Easy Functions

1. a. Write a function “myfun” of x to the power of its index position (x, x^2, x^3, …) b. Test the function with an x of 1:10 c. Enlarge the function “myfun” with a division through the index position (x, x^2 / 2, x^3 /3, …)   2. a. Write a simple moving average

## Three Different Ways in How to Store Your Datasets in R

Data.frames (df) are the most common type of data you will find in R. If you import your dataset from Excel you will likely import it as a df. Of course this makes perfect sense because most of the data fits into this object class. Columns for the variables and rows for the observations –

## Using the R Commander – An Alternative GUI

Next to RStudio there is another very helpful R GUI – graphical user interface – called R Commander. In some scenarios, this GUI can really make your job much easier. Installation In order to get it on your machine you would at first install the package Rcmdr. Basically the whole GUI can be had by

## R Exercises for Beginners – 1-10

Practicing is a crucial part of learning a new language. Statistical languages like R are no exception of that rule. Many of my students think the same and would love to see more exercises. Therefore, I decided to write an R exercise sheet for beginners and blog it over here. These R exercises are an

## Pivot Tables – Guest Post from DataJoy

This is a guest post from DataJoy. DataJoy is a zero-installation online R editor ideal for getting started with Data Analysis. Pivot tables are a powerful tool for summarizing long tables of data where the rows share common attributes. For example, if you had a table of student exam scores with name, sex, year group and

## Famous and Very Useful Pre-Installed Exercise Datasets in R

As most of you surely know, R has many exercise datasets already installed. That simply means, as soon as you installed R Base, which includes the library ‘datasets’, you have ample opportunity to explore R with real world data frames. For me as course content creator those datasets help tremendously, because with them I can

## Machine Learning – The Pinnacle of Modern Statistics!

In my consulting work, during research or while answering student questions, the topic of machine learning pops up constantly. Unfortunately, there are some misconceptions concerning this topic. In this article I am going to explain what machine learning actually is and how you can benefit from those tools. Machine learning is a collection of modern

## Creating your career with R – data science based jobs!

Do you want to start a career with R? Do you want to benefit from your R studies? I am getting more and more requests on how to utilize your newly acquired R skills on the job market. In this article I will share my thoughts and research on this topic. I have a science

## Proprietary vs. Open Source Analytics Software – Which one should I choose?

When it comes to analytics software and languages you will sooner or later have to decide which one you will use. There are dozens of tools available, some more in demand than others. As a data scientist you will find R and Python as popular open source statistical packages. On the proprietary side, you will find products like SPSS, Matlab, Stata or SAS. Since it

## Social Media Analysis in R

Lately I am receiving more and more requests about R and social media analysis. Therefore, I am creating a whole video tutorial on this topic. If you use R’s social media mining tools in a proper way, you can do some very powerful things when it comes to marketing or even investing. This application of

## The three main ways to produce graphs in R – Data Visualization in R

Data Visualization in R If you are performing statistical analysis, data visualization is an inherent part of it. There is no quality data analysis software without visualization tools. We all know Microsoft Excel and we also know those pie and bar charts we can create quite easily with Excel. If somebody without any analysis background

## Adding Legends to a Plot in R

Legends are a very useful tool to bring more clarity to your R plot. If you take multi-layered scatter plots or histograms, proper legends allow the audience to understand your plot within seconds. First of all, let us determine the difference between a legend and a table. Legends have the sole purpose to make your

## The best way to activate/load a package in R

Recently I received a question from a student. She was confused about how to load a package in R. Some scripts she had to work with contained the library() command, while others worked with require(). Let’s start from the beginning. You might know that there are a ton of extra packages which you can download from R repositories. Packages

## R Learning Plan – Thoughts on Learning R Programming

You may need R knowledge for your work or for some business or scientific project you are conducting. It may be tempting to search the web for a powerful code which could solve your problem. While this may be a short term solution, it will definitely not increase your R skills and you will soon