Dplyr
Use spread() of dplyr in R to convert long-form dataset into wide-form
dplyr is a package that belongs to tidyverse framework. dplyr allows usage of pipeline structure (%>%), which can chain multiple functions together into one statement to make data management more effective. spread() of dplyr is a function that spreads the values of columns from the current data frame, and make them as column labels in the resulting data frame.