by Erik Marsja | Feb 19, 2023 | Programming, R
In this post, you will learn how to make a residual plot in R. Moreover, you will learn when to use different residual plots and how to interpret them. Residual plots are a graphical tool that can evaluate the quality of a regression model. They are handy for...
by Erik Marsja | Feb 12, 2023 | Programming, R
This post will teach you how to carry out the Kruskal-Wallis test in R. The Kruskal-Wallis test is a non-parametric statistical test used to determine whether there is a significant difference in the median values of two or more independent groups. This method is used...
by Erik Marsja | Nov 7, 2021 | Programming, R
In this tutorial, you will 1) learn how to delete a row in R and 2) how to remove multiple rows in R. Of course, R being a universal programming language, there are many different options when we need to delete a row. For example, we can use the subset() function to...
by Erik Marsja | Aug 8, 2021 | Programming, R
In this short tutorial, you will learn how to create a matrix in R. We will use the matrix() function, among two other functions, for this aim. Specifically, we will go into the details of this function as this will enable us to e.g. name the columns and rows in the...
by Erik Marsja | Jul 14, 2021 | Programming, R
In this short tutorial, you will learn how to convert a list to a dataframe in R. To know how to convert lists to dataframes may be useful when you, for example, get your data from a source and they end up in a list of e.g. vectors. Here’s an example code template...
by Erik Marsja | Jun 30, 2021 | Programming, R
This data visualization tutorial will teach us how to make a violin plot in R using ggplot2. We can use several techniques to visualize data (see, for example, the Python-related post “9 Data Visualization Techniques You Should Learn in Python”) to...