by Erik Marsja | May 6, 2021 | Programming, R
In this short tutorial, you will learn how to convert a matrix to a dataframe in R. Specifically, you will learn how to use base R and the package tibble to change the matrix to a dataframe. You will learn this task by 4 different examples (2 using each method). ...
by Erik Marsja | Apr 27, 2021 | Programming, R
In this R tutorial, you are going to learn how to count the number of occurrences in a column. Sometimes, before starting to analyze your data, it may be useful to know how many times a given value occurs in your variables. For example, when you have a limited...
by Erik Marsja | Apr 14, 2021 | Programming, R
In this tutorial, you will learn how to do the Brown-Forsythe test in R. This test is great as you can use it to test the assumption of homogeneity of variances, which is important for e.g. Analysis of Variance (ANOVA). Outline of the Post This post is...
by Erik Marsja | Feb 14, 2021 | Programming, R
In this guide you will learn how to concatenate two columns in R. In fact, you will learn how to merge multiple columns in R using base R (e.g., using the paste function) and Tidyverse (e.g. using str_c() and unite()). In the final section of this post, you will learn...
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 4, 2021 | Programming, Python
In this Python data visualization tutorial, we are going to learn how to create a violin plot using Matplotlib and Seaborn. Now, there are several techniques for visualizing data (see the post 9 Data Visualization Techniques You Should Learn in Python for some...