[QUICK REFERENCE]: The candy survey data is contained in the candysurvey
R object of this package.
An attempt at cleaning up David Ng and Ben Cohen's 2015 Halloween Candy Hierarchy survey data
You can install candysurvey
from GitHub:
devtools::install_github("csiu/candysurvey")
Load the package:
library(candysurvey)
library(dplyr) ## using dplyr because the data is a tbl_df object
candysurvey
## Source: local data frame [5,658 x 103]
##
## user trick_or_treat archie_girls the_dress
## (chr) (lgl) (fctr) (fctr)
## 1 ID-0001 FALSE Betty White and gold
## 2 ID-0002 FALSE Betty NA
## 3 ID-0003 TRUE Veronica Blue and black
## 4 ID-0004 FALSE ??? Blue and black
## 5 ID-0005 FALSE Veronica Blue and black
## 6 ID-0006 FALSE Veronica White and gold
## 7 ID-0007 FALSE Veronica Blue and black
## 8 ID-0008 FALSE Betty Blue and black
## 9 ID-0009 TRUE Veronica White and gold
## 10 ID-0010 FALSE Betty Blue and black
## .. ... ... ... ...
## Variables not shown: imitation (fctr), friday_or_saturday (fctr), n_mints
## (int), age (int), Butterfinger (fctr), 100 Grand Bar (fctr), Anonymous
## brown globs that come in black and orange wrappers (fctr), Any
## full-sized candy bar (fctr), Black Jacks (fctr), Bonkers (fctr), Bottle
## Caps (fctr), Box'o' Raisins (fctr), Brach products (not including candy
## corn) (fctr), Bubble Gum (fctr), Cadbury Creme Eggs (fctr), Candy Corn
## (fctr), Vials of pure high fructose corn syrup, for main-lining into
## your vein (fctr), Candy that is clearly just the stuff given out for
## free at restaurants (fctr), Cash, or other forms of legal tender (fctr),
## Chiclets (fctr), Caramellos (fctr), Snickers (fctr), Dark Chocolate
## Hershey (fctr), Dental paraphenalia (fctr), Dots (fctr), Fuzzy Peaches
## (fctr), Generic Brand Acetaminophen (fctr), Glow sticks (fctr), Broken
## glow stick (fctr), Goo Goo Clusters (fctr), Good N' Plenty (fctr), Gum
## from baseball cards (fctr), Gummy Bears straight up (fctr), Creepy
## Religious comics/Chick Tracts (fctr), Healthy Fruit (fctr), Heath Bar
## (fctr), Hershey's Kissables (fctr), Hershey's Milk Chocolate (fctr),
## Hugs (actual physical hugs) (fctr), Jolly Rancher (bad flavor) (fctr),
## Jolly Ranchers (good flavor) (fctr), Kale smoothie (fctr), Kinder Happy
## Hippo (fctr), Kit Kat (fctr), Hard Candy (fctr), Lapel Pins (fctr),
## LemonHeads (fctr), Licorice (fctr), Licorice (not black) (fctr), Lindt
## Truffle (fctr), Lollipops (fctr), Mars (fctr), Mary Janes (fctr),
## Maynards (fctr), Milk Duds (fctr), LaffyTaffy (fctr), Minibags of chips
## (fctr), JoyJoy (Mit Iodine) (fctr), Reggie Jackson Bar (fctr), Pixy Stix
## (fctr), Nerds (fctr), Nestle Crunch (fctr), Now'n'Laters (fctr), Pencils
## (fctr), Milky Way (fctr), Reese's Peanut Butter Cups (fctr), Tolberone
## something or other (fctr), Runts (fctr), Junior Mints (fctr), Senior
## Mints (fctr), Mint Kisses (fctr), Mint Juleps (fctr), Mint Leaves
## (fctr), Peanut M&M's (fctr), Regular M&Ms (fctr), Mint M&Ms (fctr),
## Ribbon candy (fctr), Rolos (fctr), Skittles (fctr), Smarties (American)
## (fctr), Smarties (Commonwealth) (fctr), Chick-o-Sticks (we don't know
## what that is) (fctr), Spotted Dick (fctr), Starburst (fctr), Swedish
## Fish (fctr), Sweetums (fctr), Those odd marshmallow circus peanut things
## (fctr), Three Musketeers (fctr), Peterson Brand Sidewalk Chalk (fctr),
## Peanut Butter Bars (fctr), Peanut Butter Jars (fctr), Trail Mix (fctr),
## Twix (fctr), Vicodin (fctr), White Bread (fctr), Whole Wheat anything
## (fctr), York Peppermint Patties (fctr), Sea-salt flavored stuff,
## probably chocolate, since this is the IT flavor of the year (fctr),
## Necco Wafers (fctr).
## Lets take a glimpse at the data
candysurvey %>% glimpse()
## Observations: 5,658
## Variables: 103
## $ user (chr) ...
## $ trick_or_treat (lgl) ...
## $ archie_girls (fctr) ...
## $ the_dress (fctr) ...
## $ imitation (fctr) ...
## $ friday_or_saturday (fctr) ...
## $ n_mints (int) ...
## $ age (int) ...
## $ Butterfinger (fctr) ...
## $ 100 Grand Bar (fctr) ...
## $ Anonymous brown globs that come in black and orange wrappers (fctr) ...
## $ Any full-sized candy bar (fctr) ...
## $ Black Jacks (fctr) ...
## $ Bonkers (fctr) ...
## $ Bottle Caps (fctr) ...
## $ Box'o' Raisins (fctr) ...
## $ Brach products (not including candy corn) (fctr) ...
## $ Bubble Gum (fctr) ...
## $ Cadbury Creme Eggs (fctr) ...
## $ Candy Corn (fctr) ...
## $ Vials of pure high fructose corn syrup, for main-lining into your vein (fctr) ...
## $ Candy that is clearly just the stuff given out for free at restaurants (fctr) ...
## $ Cash, or other forms of legal tender (fctr) ...
## $ Chiclets (fctr) ...
## $ Caramellos (fctr) ...
## $ Snickers (fctr) ...
## $ Dark Chocolate Hershey (fctr) ...
## $ Dental paraphenalia (fctr) ...
## $ Dots (fctr) ...
## $ Fuzzy Peaches (fctr) ...
## $ Generic Brand Acetaminophen (fctr) ...
## $ Glow sticks (fctr) ...
## $ Broken glow stick (fctr) ...
## $ Goo Goo Clusters (fctr) ...
## $ Good N' Plenty (fctr) ...
## $ Gum from baseball cards (fctr) ...
## $ Gummy Bears straight up (fctr) ...
## $ Creepy Religious comics/Chick Tracts (fctr) ...
## $ Healthy Fruit (fctr) ...
## $ Heath Bar (fctr) ...
## $ Hershey's Kissables (fctr) ...
## $ Hershey's Milk Chocolate (fctr) ...
## $ Hugs (actual physical hugs) (fctr) ...
## $ Jolly Rancher (bad flavor) (fctr) ...
## $ Jolly Ranchers (good flavor) (fctr) ...
## $ Kale smoothie (fctr) ...
## $ Kinder Happy Hippo (fctr) ...
## $ Kit Kat (fctr) ...
## $ Hard Candy (fctr) ...
## $ Lapel Pins (fctr) ...
## $ LemonHeads (fctr) ...
## $ Licorice (fctr) ...
## $ Licorice (not black) (fctr) ...
## $ Lindt Truffle (fctr) ...
## $ Lollipops (fctr) ...
## $ Mars (fctr) ...
## $ Mary Janes (fctr) ...
## $ Maynards (fctr) ...
## $ Milk Duds (fctr) ...
## $ LaffyTaffy (fctr) ...
## $ Minibags of chips (fctr) ...
## $ JoyJoy (Mit Iodine) (fctr) ...
## $ Reggie Jackson Bar (fctr) ...
## $ Pixy Stix (fctr) ...
## $ Nerds (fctr) ...
## $ Nestle Crunch (fctr) ...
## $ Now'n'Laters (fctr) ...
## $ Pencils (fctr) ...
## $ Milky Way (fctr) ...
## $ Reese's Peanut Butter Cups (fctr) ...
## $ Tolberone something or other (fctr) ...
## $ Runts (fctr) ...
## $ Junior Mints (fctr) ...
## $ Senior Mints (fctr) ...
## $ Mint Kisses (fctr) ...
## $ Mint Juleps (fctr) ...
## $ Mint Leaves (fctr) ...
## $ Peanut M&M's (fctr) ...
## $ Regular M&Ms (fctr) ...
## $ Mint M&Ms (fctr) ...
## $ Ribbon candy (fctr) ...
## $ Rolos (fctr) ...
## $ Skittles (fctr) ...
## $ Smarties (American) (fctr) ...
## $ Smarties (Commonwealth) (fctr) ...
## $ Chick-o-Sticks (we don't know what that is) (fctr) ...
## $ Spotted Dick (fctr) ...
## $ Starburst (fctr) ...
## $ Swedish Fish (fctr) ...
## $ Sweetums (fctr) ...
## $ Those odd marshmallow circus peanut things (fctr) ...
## $ Three Musketeers (fctr) ...
## $ Peterson Brand Sidewalk Chalk (fctr) ...
## $ Peanut Butter Bars (fctr) ...
## $ Peanut Butter Jars (fctr) ...
## $ Trail Mix (fctr) ...
## $ Twix (fctr) ...
## $ Vicodin (fctr) ...
## $ White Bread (fctr) ...
## $ Whole Wheat anything (fctr) ...
## $ York Peppermint Patties (fctr) ...
## $ Sea-salt flavored stuff, probably chocolate, since this is the IT flavor of the year (fctr) ...
## $ Necco Wafers (fctr) ...
I make available the plain text, comma delimited, .csv
file of the candy survey data:
library(candysurvey); candysurvey
This work -- as part of my STAT 547M coursework -- is inspired by @jennybc/candy.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.