Finding a Dataset 1

View of the Dataset

Structure of the Dataset

## tibble [2,224 x 21] (S3: tbl_df/tbl/data.frame)
##  $ X1                              : num [1:2224] 0 1 2 3 4 5 6 7 8 9 ...
##  $ ref                             : num [1:2224] 2454 2458 2454 797 797 ...
##  $ company                         : chr [1:2224] "5150" "5150" "5150" "A. Morin" ...
##  $ company_location                : chr [1:2224] "U.S.A" "U.S.A" "U.S.A" "France" ...
##  $ review_date                     : num [1:2224] 2019 2019 2019 2012 2012 ...
##  $ country_of_bean_origin          : chr [1:2224] "Madagascar" "Dominican republic" "Tanzania" "Peru" ...
##  $ specific_bean_origin_or_bar_name: chr [1:2224] "Bejofo Estate, batch 1" "Zorzal, batch 1" "Kokoa Kamili, batch 1" "Peru" ...
##  $ cocoa_percent                   : num [1:2224] 76 76 76 63 70 70 63 70 70 70 ...
##  $ rating                          : num [1:2224] 3.75 3.5 3.25 3.75 3.5 4 4 3.75 3.5 3.25 ...
##  $ counts_of_ingredients           : num [1:2224] 3 3 3 4 4 4 3 4 4 4 ...
##  $ beans                           : chr [1:2224] "have_bean" "have_bean" "have_bean" "have_bean" ...
##  $ cocoa_butter                    : chr [1:2224] "have_cocoa_butter" "have_cocoa_butter" "have_cocoa_butter" "have_cocoa_butter" ...
##  $ vanilla                         : chr [1:2224] "have_not_vanila" "have_not_vanila" "have_not_vanila" "have_not_vanila" ...
##  $ lecithin                        : chr [1:2224] "have_not_lecithin" "have_not_lecithin" "have_not_lecithin" "have_lecithin" ...
##  $ salt                            : chr [1:2224] "have_not_salt" "have_not_salt" "have_not_salt" "have_not_salt" ...
##  $ sugar                           : chr [1:2224] "have_sugar" "have_sugar" "have_sugar" "have_sugar" ...
##  $ sweetener_without_sugar         : chr [1:2224] "have_not_sweetener_without_sugar" "have_not_sweetener_without_sugar" "have_not_sweetener_without_sugar" "have_not_sweetener_without_sugar" ...
##  $ first_taste                     : chr [1:2224] "cocoa" "cocoa" "rich cocoa" "fruity" ...
##  $ second_taste                    : chr [1:2224] "blackberry" "vegetal" "fatty" "melon" ...
##  $ third_taste                     : chr [1:2224] "full body" "savory" "bready" "roasty" ...
##  $ fourth_taste                    : chr [1:2224] NA NA NA NA ...
##  - attr(*, "spec")=
##   .. cols(
##   ..   X1 = col_double(),
##   ..   ref = col_double(),
##   ..   company = col_character(),
##   ..   company_location = col_character(),
##   ..   review_date = col_double(),
##   ..   country_of_bean_origin = col_character(),
##   ..   specific_bean_origin_or_bar_name = col_character(),
##   ..   cocoa_percent = col_double(),
##   ..   rating = col_double(),
##   ..   counts_of_ingredients = col_double(),
##   ..   beans = col_character(),
##   ..   cocoa_butter = col_character(),
##   ..   vanilla = col_character(),
##   ..   lecithin = col_character(),
##   ..   salt = col_character(),
##   ..   sugar = col_character(),
##   ..   sweetener_without_sugar = col_character(),
##   ..   first_taste = col_character(),
##   ..   second_taste = col_character(),
##   ..   third_taste = col_character(),
##   ..   fourth_taste = col_character()
##   .. )

Finding a Dataset 2

Description of the Dataset

This delicious dataset compiles, compares, and rates the taste of over 1,700 chocolate bars from around the world. The set shows the company that made the bar, the company’s location, where the cocoa beans came from, when the bar was rated how many ingredients are in the bar, how much of the bar is cocoa, whether or not the bar contains beans, cocoa butter, vanilla, lecithin, salt, sugar, or sweeteners, and describes the different flavors of the bar.
Ratings range from 5.0 (outstanding) to 1.0 (terrible), with a ver wide rage in between.
The dataset also gives a detailed description of the different levels of flavor within the bar, and the order in which they were experienced.

Reading and Writing

Structure and Attributes

Data Manipulation

## # A tibble: 242 x 22
##       X1   ref company company_location review_date country_of_bean~
##    <dbl> <dbl> <chr>   <chr>                  <dbl> <chr>           
##  1     5  1015 A. Mor~ France                  2013 Venezuela       
##  2     7  1011 A. Mor~ France                  2013 Ecuador         
##  3    26  2206 A. Mor~ France                  2018 Peru            
##  4    29  1470 Acalli  U.S.A                   2015 Peru            
##  5    36  2438 Aelan   Vanuatu                 2019 Vanuatu         
##  6    37  2438 Aelan   Vanuatu                 2019 Vanuatu         
##  7    58  1125 Altus ~ U.S.A                   2013 Dominican repub~
##  8    59  1133 Altus ~ U.S.A                   2013 Bolivia         
##  9    63  1732 Altus ~ U.S.A                   2016 Ecuador         
## 10    65  1732 Altus ~ U.S.A                   2016 Peru            
## # ... with 232 more rows, and 16 more variables:
## #   specific_bean_origin_or_bar_name <chr>, cocoa_percent <dbl>, rating <dbl>,
## #   counts_of_ingredients <dbl>, beans <chr>, cocoa_butter <chr>,
## #   vanilla <chr>, lecithin <chr>, salt <chr>, sugar <chr>,
## #   sweetener_without_sugar <chr>, first_taste <chr>, second_taste <chr>,
## #   third_taste <chr>, fourth_taste <chr>, quality <chr>
## [1] 3
## [1] 3.17562
## # A tibble: 105 x 22
##       X1   ref company company_location review_date country_of_bean~
##    <dbl> <dbl> <chr>   <chr>                  <dbl> <chr>           
##  1     7  1011 A. Mor~ France                  2013 Ecuador         
##  2    26  2206 A. Mor~ France                  2018 Peru            
##  3    29  1470 Acalli  U.S.A                   2015 Peru            
##  4    68   129 Amano   U.S.A                   2007 Madagascar      
##  5    80  1145 Amazona Peru                    2013 Peru            
##  6    81  1145 Amazona Peru                    2013 Peru            
##  7    92   170 Amedei  Italy                   2007 Blend           
##  8   103   572 AMMA    Brazil                  2010 Brazil          
##  9   115  1534 Arete   U.S.A                   2015 Brazil          
## 10   171  2056 Auro    Philippines             2018 Philippines     
## # ... with 95 more rows, and 16 more variables:
## #   specific_bean_origin_or_bar_name <chr>, cocoa_percent <dbl>, rating <dbl>,
## #   counts_of_ingredients <dbl>, beans <chr>, cocoa_butter <chr>,
## #   vanilla <chr>, lecithin <chr>, salt <chr>, sugar <chr>,
## #   sweetener_without_sugar <chr>, first_taste <chr>, second_taste <chr>,
## #   third_taste <chr>, fourth_taste <chr>, quality <chr>

Numerical Summaries

## rateSum
##     1st Qu.: 657        1st Qu.: 70       1st Qu.: 781        1st Qu.:2.0   
##                  1                  1                  1                  1 
##      1st Qu.:2.8       1st Qu.:2011        3rd Qu.: 75       3rd Qu.:1691   
##                  1                  1                  1                  1 
##     3rd Qu.:2018       3rd Qu.:2059        3rd Qu.:3.5        3rd Qu.:4.0   
##                  1                  1                  1                  1 
## Class :character   Length:242              Max.   :100       Max.   :2020   
##                 16                 16                  1                  1 
##     Max.   :2215       Max.   :2490        Max.   :4.0        Max.   :5.0   
##                  1                  1                  1                  1 
##      Mean   : 71       Mean   :1162       Mean   :1396       Mean   :2014   
##                  1                  1                  1                  1 
##      Mean   :3.1        Mean   :3.2        Median : 70       Median :1188   
##                  1                  1                  1                  1 
##     Median :1448       Median :2015        Median :3.0       Min.   :   5   
##                  1                  1                  2                  1 
##     Min.   :  15        Min.   : 58        Min.   :2.0       Min.   :2006   
##                  1                  1                  2                  1 
## Mode  :character   
##                 16
## cocoaSum
##     1st Qu.: 657        1st Qu.: 70       1st Qu.: 781        1st Qu.:2.0   
##                  1                  1                  1                  1 
##      1st Qu.:2.8       1st Qu.:2011        3rd Qu.: 75       3rd Qu.:1691   
##                  1                  1                  1                  1 
##     3rd Qu.:2018       3rd Qu.:2059        3rd Qu.:3.5        3rd Qu.:4.0   
##                  1                  1                  1                  1 
## Class :character   Length:242              Max.   :100       Max.   :2020   
##                 16                 16                  1                  1 
##     Max.   :2215       Max.   :2490        Max.   :4.0        Max.   :5.0   
##                  1                  1                  1                  1 
##      Mean   : 71       Mean   :1162       Mean   :1396       Mean   :2014   
##                  1                  1                  1                  1 
##      Mean   :3.1        Mean   :3.2        Median : 70       Median :1188   
##                  1                  1                  1                  1 
##     Median :1448       Median :2015        Median :3.0       Min.   :   5   
##                  1                  1                  2                  1 
##     Min.   :  15        Min.   : 58        Min.   :2.0       Min.   :2006   
##                  1                  1                  2                  1 
## Mode  :character   
##                 16
Frequency Table of Cocoa Percentage and Ingredient Count
2 3 4 5
58 0 0 0 1
60 0 4 6 1
61 0 0 0 1
62 0 1 3 0
63 0 2 2 0
64 1 2 1 1
65 2 2 1 3
66 0 0 1 0
67 1 2 0 0
68 2 3 2 1
69 1 0 1 0
70 26 28 22 6
71 3 0 3 2
71.5 0 1 0 0
72 5 13 4 5
73 4 2 0 0
74 3 4 1 0
75 11 8 12 0
76 2 4 0 0
77 2 3 0 0
78 0 1 1 0
80 3 1 1 0
82 2 0 0 0
85 1 4 1 1
88 1 0 0 0
90 1 1 0 0
100 1 0 0 0

Graphical Summaries