by Erik Marsja | Jan 18, 2021 | Programming, R
In this short tutorial, you will learn how to find the five-number summary statistics in R. Specifically, in this post we will calculate: MinimumLower-hingeMedianUpper-hingeMaximum Now, we will also visualize the five-number summary statistics using a boxplot. First,...
by Erik Marsja | Jan 2, 2021 | Programming, R
In this very short tutorial, you will learn by example how to use the operator $ in R. First, we will learn what the $ operator does by getting the answer to some frequently asked questions. Second, we will work with a list that we create, and use the dollar sign...
by Erik Marsja | Dec 10, 2020 | Programming, R
In this data science tutorial, you will learn how to rename a column (or multiple columns) in R using base functions as well as dplyr. Renaming columns in R is a very easy task, especially using the rename() function. Now, renaming a column with dplyr and the rename()...
by Erik Marsja | Dec 4, 2020 | Programming, R
In this data science tutorial, you will learn how to get the absolute value in R. Specifically, you will learn how to get the absolute value using the built-in function abs(). As you may already suspect, using abs() is very easy and to take the absolute value from...
by Erik Marsja | Nov 24, 2020 | Programming, R
In this R tutorial, you will learn how to select columns in a dataframe. First, we will use base R, in a number of examples, to choose certain columns. Second, we will use dplyr to get columns from the dataframe. Outline In the first section, we are going to have a...
by Erik Marsja | Nov 8, 2020 | Programming, R
In this brief tutorial, you will learn how to add a column to a dataframe in R. More specifically, you will learn 1) to add a column using base R (i.e., by using the $-operator and brackets, 2) add a column using the add_column() function (i.e., from tibble), 3) add...