How to create a nested dataframe with lists

In this tutorial, we will learn how to create a nested dataframe using nest() function in tidyverse. A nested dataframe is a dataframe where one or more columns are list columns. In a simple dataframe, columns are simple/atomic vectors. However, column can contain other data structures like list, or dataframe. Such columns are called list… Continue reading How to create a nested dataframe with lists

How to compute proportion with tidyverse

In this tutorial, we will learn how to compute proportion with tidyverse. We will see three examples of caluculating proportion. In the first, we have counts of a single column and show how to calculate proportion. The second example shows how to compute proportion of variable resulting from combination of two other variables. We will… Continue reading How to compute proportion with tidyverse

How to Compute Z-Score of Multiple Columns

In this post, we will learn how to compute Z-score of multiple variables (columns) at the same time using tidyverse in R using multiple approaches. First, we will show an example of computing Z-score of multiple columns, where all the columns in the dataframe is numeric and then we will show example where we have… Continue reading How to Compute Z-Score of Multiple Columns

How to compute Z-score

In this post, we will learn how to compute Z-score in R using two different approaches, first manually by using the z-score formula and then using scale() function available in base R. What is Z-score Z-score is a commonly used transformation technique to standardize/normalize a numerical variable. Transforming numerical variables into Z-scores enable us to… Continue reading How to compute Z-score

How to Compute Compound Interest with Tidyverse

In this post, we will learn how to calculate compound interest in R using tidyverse framework. Getting an intuition behind how compound interest can influence investing returns is wxtremely useful in personal final. On a high level, compounding interest refers to the process of earning interest not only on the the original investment amount (i.e.… Continue reading How to Compute Compound Interest with Tidyverse

Exit mobile version