PCA in tidyverse framework

PCA plot: PC1 vs PC2 - PCA with tidyverse

Performing PCA in tidyverse framework is probably one of my go to approaches for any high-dimensional data. In R, we can easily perform Principal Component analysis (PCA) using prcomp() and a few other options. A common challenge I face is to quickly look at the PCA results using a few different plots. With continual development… Continue reading PCA in tidyverse framework

6 Tips to change column positions with dplyr’s relocate()

Sometimes you want to change the order of columns in a dataframe. dpyr’s relocate() function makes it easy to move one or more columns to new positions easily by using the same syntax as select() function. In this post we will see 7 tips to change column order or column position using dplyr’s relocate(). Let… Continue reading 6 Tips to change column positions with dplyr’s relocate()