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 22, 2020 | Programming, Python

In this Python data analysis tutorial, you will learn how to perform a paired sample t-test in Python. First, you will learn about this type of t-test (e.g. when to use it, the assumptions of the test). Second, you will learn how to check whether your data follow the...
by Erik Marsja | Nov 19, 2020 | Programming, Python

In this tutorial, related to data analysis in Python, you will learn how to deal with your data when it is not following the normal distribution. One way to deal with non-normal data is to transform your data. In this post, you will learn how to carry out Box-Cox,...
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...
by Erik Marsja | Nov 4, 2020 | Programming, R

In this tutorial, you will learn how to rename factor levels in R. First, we will use the base functions that are available in R, and then we will use dplyr. To rename factor levels using levels() we can assign a character vector with the new names. If we want...