Advertisement
KillianMills

Data Mining Commands

Oct 4th, 2015
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 4.09 KB | None | 0 0
  1. > results = read.table("DataSetNFL.txt", sep=",")
  2. >
  3. >
  4. > summary(results)
  5.        V1              V2                              V3      
  6.  Min.   :   1   AbboFa20:   1   Robert Lee Howard       :   2  
  7.  1st Qu.:1112   AbbrDu20:   1   Aaron Earl Oliker       :   1  
  8.  Median :2222   AbelFr20:   1   Aaron Lewis Brown Jr.   :   1  
  9.  Mean   :2222   AberCl20:   1   Abe Yeoman Wilson       :   1  
  10.  3rd Qu.:3333   AbraGe20:   1   Abisha Collins Pritchard:   1  
  11.  Max.   :4444   AbraNa20:   1   Abner Perry Wimberly    :   1  
  12.  NA's   :1      (Other) :4439   (Other)                 :4438  
  13.             V4               V5             V6             V7      
  14. George Wilson:   3   FALSE    :3969   all_pro:   1   1      : 236  
  15. Al Krueger   :   2   probowler:   1   FALSE  :4174   2      : 101  
  16. Art Lewis    :   2   TRUE     : 475   TRUE   : 270   3      :  51  
  17. Bill Johnson :   2                                   4      :  38  
  18. Bill Ward    :   2                                   5      :  12  
  19. Billy Wilson :   2                                   (Other):  38  
  20. (Other)      :4432                                   NA's   :3969  
  21.        V8             V9                     V10            V11      
  22.  1      : 236   OL     :1558   D               : 647   2002   : 127  
  23.  2      : 101   RB/FB  :1324   O               :3772   2012   : 116  
  24.  3      :  51   TE     : 609   positon_location:   1   1992   : 115  
  25.  4      :  38   DL     : 278   ST              :  25   2008   : 113  
  26.  5      :  12   DB     : 203                           1994   : 110  
  27.  (Other):  38   LB     : 166                           1998   : 110  
  28.  NA's   :3969   (Other): 307                           (Other):3754  
  29.       V12                    V13            V14            V15      
  30. 3/6/02  :   4                  :  96   77     : 153   72     : 792  
  31. 9/23/97 :   4   Chicago, IL    :  73   79     : 145   73     : 707  
  32. 10/21/71:   3                  :  64   80     : 137   71     : 596  
  33. 10/26/83:   3   Houston, TX    :  60   78     : 136   74     : 583  
  34. 11/26/85:   3   Columbus, OH   :  47   75     : 134   70     : 453  
  35. 11/5/08 :   3   Los Angeles, CA:  45   74     : 130   (Other):1219  
  36. (Other) :4425   (Other)        :4060   (Other):3610   NA's   :  95  
  37.       V16           V17                  V18               V19      
  38.  6'0    :792   190    : 262                :4408   none      : 207  
  39. 6'1    :707   195    : 236   Right        :  36   Notre Dame: 135  
  40.  5'11   :596   200    : 201   throwing_hand:   1   Ohio St.  :  93  
  41. 6'2    :583   210    : 193                        Minnesota :  76  
  42.  5'10   :453   185    : 192                        USC       :  73  
  43. 6'3    :359   205    : 189                        Pittsburgh:  69  
  44.  (Other):955   (Other):3172                        (Other)   :3792  
  45.                   V20            V21            V22            V23      
  46.                     :2544   1943   : 102   1      : 135   4      :  16  
  47.  Chicago Bears      : 161   1941   : 101   3      : 102   18     :  14  
  48.  Detroit Lions      : 153   1944   :  99   5      :  90   2      :  14  
  49.  New York Giants    : 153   1947   :  98   2      :  79   62     :  13  
  50.  Washington Redskins: 135   1942   :  96   4      :  75   8      :  13  
  51.  Philadelphia Eagles: 134   (Other):1941   (Other): 758   (Other):1169  
  52.  (Other)            :1165   NA's   :2008   NA's   :3206   NA's   :3206  
  53.              V24            V25                     V26            V27      
  54. 1941 to 1959   :1317   12/5/11:   4                   : 171   1917   : 158  
  55. 1960 to 1975   : 391   3/26/21:   4   Chicago, IL     : 141   1921   : 156  
  56. 1976 to 1989   : 151   4/15/21:   4   Los Angeles, CA :  49   1919   : 146  
  57. 1990 to 2002   :  38   1/20/23:   3   Philadelphia, PA:  45   1920   : 140  
  58. 2003 to Present:  10   1/29/28:   3   New York, NY    :  41   1918   : 135  
  59. era_name       :   1   1/8/20 :   3   Pittsburgh, PA  :  40   1915   : 115  
  60. pre-1940       :2537   (Other):4424   (Other)         :3958   (Other):3595
  61.  
  62. > counts <- table(results$V11, results$V25 )
  63.  
  64. > barplot(counts, main="Date of birth", xlab= "Year of death")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement