Mushroom: Mushroom Data Set

Description Usage Format Details Source References Examples

Description

A data set with descriptions of hypothetical samples corresponding to 23 species of gilled mushrooms in the Agaricus and Lepiota Family, classified according to their edibility as (definitely) ‘edible’ or ‘poisonous’ (definitely poisonous, or of unknown edibility and not recommended).

Usage

1
data("Mushroom")

Format

A data frame with 8124 observations on the following 23 variables.

class

a factor with levels edible and poisonous.

cap-shape

a factor with levels bell, conical, convex, flat, knobbed, sunken.

cap-surface

a factor with levels fibrous, grooves, scaly, smooth.

cap-color

a factor with levels brown, buff, cinnamon, gray, green, pink, purple, red, white, yellow.

bruises?

a factor with levels bruises and no.

odor

a factor with levels almond, anise, creosote, fishy, foul, musty, none, pungent, spicy.

gill-attachment

a factor with levels attached and free.

gill-spacing

a factor with levels close and crowded.

gill-size

a factor with levels broad and narrow.

gill-color

a factor with levels black, brown, buff, chocolate, gray, green, orange, pink, purple, red, white, and yellow.

stalk-shape

a factor with levels enlarging and tapering.

stalk-root

a factor with levels bulbous, club, equal, and rooted.

stalk-surface-above-ring

a factor with levels fibrous, scaly, silky, and smooth.

stalk-surface-below-ring

a factor with levels fibrous, scaly, silky, and smooth.

stalk-color-above-ring

a factor with levels brown, buff, cinnamon, gray, orange, pink, red, white, and yellow.

stalk-color-below-ring

a factor with levels brown, buff, cinnamon, gray, orange, pink, red, white, and yellow.

veil-type

a factor with levels partial.

veil-color

a factor with levels brown, orange, white, and yellow.

ring-number

a factor with levels one, one, and two.

ring-type

a factor with levels evanescent, flaring, large, none, and pendant.

spore-print-color

a factor with levels black, brown, buff, chocolate, green, orange, purple, white, and yellow.

population

a factor with levels abundant, clustered, numerous, scattered, several, and solitary.

habitat

a factor with levels grasses, leaves, meadows, paths, urban, waste, and woods.

Details

The records are drawn from G. H. Lincoff (1981) (Pres.), The Audubon Society Field Guide to North American Mushrooms. New York: Alfred A. Knopf. (See pages 500–525 for the Agaricus and Lepiota Family.)

The Guide clearly states that there is no simple rule for determining the edibility of a mushroom; no rule like “leaflets three, let it be” for Poisonous Oak and Ivy.

Unused levels in the original data were dropped.

Source

http://www.ics.uci.edu/~mlearn/MLRepository.html

References

Blake, C.L. & Merz, C.J. (1998). UCI Repository of Machine Learning Databases. Irvine, CA: University of California, Department of Information and Computer Science.

Examples

1
2
data("Mushroom")
summary(Mushroom)

Example output

Loading required package: grid
Loading required package: proxy

Attaching package: 'proxy'

The following objects are masked from 'package:stats':

    as.dist, dist

The following object is masked from 'package:base':

    as.matrix

       class        cap-shape     cap-surface     cap-color       bruises?   
 edible   :4208   bell   : 452   fibrous:2320   brown  :2284   bruises:3376  
 poisonous:3916   conical:   4   grooves:   4   gray   :1840   no     :4748  
                  convex :3656   scaly  :3244   red    :1500                 
                  flat   :3152   smooth :2556   yellow :1072                 
                  knobbed: 828                  white  :1040                 
                  sunken :  32                  buff   : 168                 
                                                (Other): 220                 
      odor      gill-attachment  gill-spacing   gill-size        gill-color  
 none   :3528   attached: 210   close  :6812   broad :5612   buff     :1728  
 foul   :2160   free    :7914   crowded:1312   narrow:2512   pink     :1492  
 fishy  : 576                                                white    :1202  
 spicy  : 576                                                brown    :1048  
 almond : 400                                                gray     : 752  
 anise  : 400                                                chocolate: 732  
 (Other): 484                                                (Other)  :1170  
    stalk-shape     stalk-root   stalk-surface-above-ring
 enlarging:3516   bulbous:3776   ibrous: 552             
 tapering :4608   club   : 556   scaly :  24             
                  equal  :1120   silky :2372             
                  rooted : 192   smooth:5176             
                  NA's   :2480                           
                                                         
                                                         
 stalk-surface-below-ring stalk-color-above-ring stalk-color-below-ring
 ibrous: 600              white  :4464           white  :4384          
 scaly : 284              pink   :1872           pink   :1872          
 silky :2304              gray   : 576           gray   : 576          
 smooth:4936              brown  : 448           brown  : 512          
                          buff   : 432           buff   : 432          
                          orange : 192           orange : 192          
                          (Other): 140           (Other): 156          
   veil-type     veil-color   ring-number      ring-type    spore-print-color
 partial:8124   brown :  96   none:  36   evanescent:2776   white    :2388   
                orange:  96   one :7488   flaring   :  48   brown    :1968   
                white :7924   two : 600   large     :1296   black    :1872   
                yellow:   8               none      :  36   chocolate:1632   
                                          pendant   :3968   green    :  72   
                                                            buff     :  48   
                                                            (Other)  : 144   
     population      habitat    
 abundant : 384   grasses:2148  
 clustered: 340   leaves : 832  
 numerous : 400   meadows: 292  
 scattered:1248   paths  :1144  
 several  :4040   urban  : 368  
 solitary :1712   waste  : 192  
                  woods  :3148  

cba documentation built on May 2, 2019, 1:39 p.m.

Related to Mushroom in cba...