For this assignment I will create an example. Using one or more TidyVerse packages, and any dataset from fivethirtyeight.com or Kaggle, create a programming sample “vignette” that demonstrates how to use one or more of the capabilities of the selected TidyVerse package with my selected dataset.”

In light of the current situation across the world, I chose the Bob Ross elements by episode recordset.

Load the Bob Ross dataset from fivethirtyeight into the RStudio environment:

## Parsed with column specification:
## cols(
##   .default = col_double(),
##   EPISODE = col_character(),
##   TITLE = col_character()
## )
## See spec(...) for full column specifications.

Use the Reshape library’s method ‘melt’ to transform the data set froma wide format to a long format

##       EPISODE                 TITLE    object
## 2822   S01E01 "A WALK IN THE WOODS"    BUSHES
## 6449   S01E01 "A WALK IN THE WOODS" DECIDUOUS
## 10882  S01E01 "A WALK IN THE WOODS"     GRASS
## 19345  S01E01 "A WALK IN THE WOODS"     RIVER
## 23375  S01E01 "A WALK IN THE WOODS"      TREE
## 23778  S01E01 "A WALK IN THE WOODS"     TREES
## 3226   S01E02        "MT. MCKINLEY"     CABIN
## 5241   S01E02        "MT. MCKINLEY"    CLOUDS
## 5644   S01E02        "MT. MCKINLEY"   CONIFER
## 14913  S01E02        "MT. MCKINLEY"  MOUNTAIN

Now use tidyr’s ‘pivot_longer()’ and dplyr methods to replicate same reshaping of the the data and reproduce the same figure as above: