datasets: Information on Data Sets in Packages

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/datasets.R

Description

The data function is used both to load data sets from packages, and give a display of the names and titles of data sets in one or more packages, however it does not return a result that can be easily used to get additional information about the nature of data sets in packages.

The datasets() function is designed to produce a more useful summary display of data sets in one or more packages. It extracts the class and dimension information (dim or codelength) of each item, and formats these to provide additional descriptors.

Usage

1
2
3
datasets(package, allClass=FALSE, 
    incPackage=length(package) > 1,
    maxTitle=NULL)

Arguments

package

a character vector giving the package(s) to look in

allClass

include all classes of the item (TRUE) or just the last class (FALSE)?

incPackage

include the package name in result?

maxTitle

maximum length of data set Title

Details

The requested packages must be installed, and are silently loaded in order to extract class and size information.

Value

A data.frame whose rows correspond to data sets found in package. The columns (for a single package) are:

Item

data set name

class

class

dim

an abbreviation of the dimensions of the data set

Title

data set title

Author(s)

Michael Friendly, with R-help from Curt Seeliger

See Also

data,

Examples

1
2
3
datasets("vcdExtra")
datasets(c("vcd", "vcdExtra"))
datasets("datasets", maxTitle=50)

Example output

Loading required package: vcd
Loading required package: grid
Loading required package: gnm
             Item      class       dim
1        Abortion      table     2x2x2
2        Accident data.frame      80x5
3        AirCrash data.frame     439x5
4       Alligator data.frame      80x5
5        Bartlett      table     2x2x2
6            Burt data.frame      36x5
7          Caesar      table   3x2x2x2
8          Cancer      table     2x2x2
9      Cormorants data.frame     343x8
10  CyclingDeaths data.frame     208x2
11   DaytonSurvey data.frame      32x6
12        Depends      table        15
13      Detergent      table   2x2x2x3
14         Donner data.frame      90x5
15      Draft1970 data.frame     366x3
16 Draft1970table      table      12x3
17           Dyke      table 2x2x2x2x2
18      Fungicide      array   2x2x2x2
19            GSS data.frame       6x3
20       Geissler data.frame      90x4
21          Gilby      table       6x4
22          Glass data.frame      25x3
23   HairEyePlace      array     4x5x2
24       Hauser79 data.frame      25x3
25          Heart      table     2x2x3
26        Heckman      table 2x2x2x2x2
27     HospVisits      table       3x3
28           Hoyt      table   4x3x7x2
29            ICU data.frame    200x22
30         JobSat      table       4x4
31     Mammograms     matrix       4x4
32         Mental data.frame      24x3
33           Mice data.frame      30x4
34       Mobility      table       5x5
35        PhdPubs data.frame     915x6
36     ShakeWords data.frame     100x2
37             TV      array    5x11x3
38       Titanicp data.frame    1309x6
39       Toxaemia data.frame      60x5
40        Vietnam data.frame      40x4
41       Vote1980 data.frame      28x4
42      WorkerSat data.frame       8x4
43    Yamaguchi87 data.frame      75x4
                                                   Title
1                                  Abortion Opinion Data
2             Traffic Accident Victims in France in 1958
3                                         Air Crash Data
4                                  Alligator Food Choice
5                    Bartlett data on plum root cuttings
6       Burt (1950) Data on Hair, Eyes, Head and Stature
7         Risk Factors for Infection in Caesarian Births
8                     Survival of Breast Cancer Patients
9               Advertising Behavior by Males Cormorants
10                                 London Cycling Deaths
11                Dayton Student Survey on Substance Use
12                            Dependencies of R Packages
13                             Detergent preference data
14                          Survival in the Donner Party
15                           USA 1970 Draft Lottery Data
16                          USA 1970 Draft Lottery Table
17                        Sources of Knowledge of Cancer
18                   Carcinogenic Effects of a Fungicide
19      General Social Survey- Sex and Party affiliation
20                Geissler's Data on the Human Sex Ratio
21          Clothing and Intelligence Rating of Children
22              British Social Mobility from Glass(1954)
23    Hair Color and Eye Color in Caithness and Aberdeen
24                 Hauser (1979) Data on Social Mobility
25                     Sex, Occupation and Heart Disease
26 Labour Force Participation of Married Women 1967-1971
27                                  Hospital Visits Data
28                       Minnesota High School Graduates
29                                          ICU data set
30    Cross-classification of job satisfaction by income
31                                     Mammogram Ratings
32                     Mental impariment and parents SES
33                                   Mice Depletion Data
34                                  Social Mobility data
35                        Publications of PhD Candidates
36                   Shakespeare's Word Type Frequencies
37                                       TV Viewing Data
38                             Passengers on the Titanic
39                        Toxaemia Symptoms in Pregnancy
40                 Student Opinion about the Vietnam War
41       Race and Politics in the 1980 Presidential Vote
42                              Worker Satisfaction Data
43              Occupational Mobility in Three Countries
    Package            Item      class             dim
1       vcd       Arthritis data.frame            84x5
2       vcd        Baseball data.frame          322x25
3       vcd  BrokenMarriage data.frame            20x4
4       vcd      Bundesliga data.frame         14018x7
5       vcd   Bundestag2005      table            16x5
6       vcd       Butterfly      table              24
7       vcd      CoalMiners      table           2x2x9
8       vcd   DanishWelfare data.frame           180x5
9       vcd      Employment      table           2x6x2
10      vcd      Federalist      table               7
11      vcd         Hitters data.frame           154x4
12      vcd      HorseKicks      table               5
13      vcd        Hospital      table             3x3
14      vcd JobSatisfaction data.frame             8x4
15      vcd     JointSports data.frame            40x5
16      vcd       Lifeboats data.frame            18x8
17      vcd      MSPatients      array           4x4x2
18      vcd     NonResponse data.frame            12x4
19      vcd     OvaryCancer data.frame            16x5
20      vcd          PreSex      table         2x2x2x2
21      vcd      Punishment data.frame            36x5
22      vcd         RepVict      table             8x8
23      vcd        Rochdale      table 2x2x2x2x2x2x2x2
24      vcd          Saxony      table              13
25      vcd       SexualFun      table             4x4
26      vcd    SpaceShuttle data.frame            24x6
27      vcd         Suicide data.frame           306x6
28      vcd          Trucks data.frame            24x5
29      vcd        UKSoccer      table             5x5
30      vcd    VisualAcuity data.frame            32x4
31      vcd         VonBort data.frame           280x4
32      vcd      WeldonDice      table              11
33      vcd      WomenQueue      table              11
34 vcdExtra        Abortion      table           2x2x2
35 vcdExtra        Accident data.frame            80x5
36 vcdExtra        AirCrash data.frame           439x5
37 vcdExtra       Alligator data.frame            80x5
38 vcdExtra        Bartlett      table           2x2x2
39 vcdExtra            Burt data.frame            36x5
40 vcdExtra          Caesar      table         3x2x2x2
41 vcdExtra          Cancer      table           2x2x2
42 vcdExtra      Cormorants data.frame           343x8
43 vcdExtra   CyclingDeaths data.frame           208x2
44 vcdExtra    DaytonSurvey data.frame            32x6
45 vcdExtra         Depends      table              15
46 vcdExtra       Detergent      table         2x2x2x3
47 vcdExtra          Donner data.frame            90x5
48 vcdExtra       Draft1970 data.frame           366x3
49 vcdExtra  Draft1970table      table            12x3
50 vcdExtra            Dyke      table       2x2x2x2x2
51 vcdExtra       Fungicide      array         2x2x2x2
52 vcdExtra             GSS data.frame             6x3
53 vcdExtra        Geissler data.frame            90x4
54 vcdExtra           Gilby      table             6x4
55 vcdExtra           Glass data.frame            25x3
56 vcdExtra    HairEyePlace      array           4x5x2
57 vcdExtra        Hauser79 data.frame            25x3
58 vcdExtra           Heart      table           2x2x3
59 vcdExtra         Heckman      table       2x2x2x2x2
60 vcdExtra      HospVisits      table             3x3
61 vcdExtra            Hoyt      table         4x3x7x2
62 vcdExtra             ICU data.frame          200x22
63 vcdExtra          JobSat      table             4x4
64 vcdExtra      Mammograms     matrix             4x4
65 vcdExtra          Mental data.frame            24x3
66 vcdExtra            Mice data.frame            30x4
67 vcdExtra        Mobility      table             5x5
68 vcdExtra         PhdPubs data.frame           915x6
69 vcdExtra      ShakeWords data.frame           100x2
70 vcdExtra              TV      array          5x11x3
71 vcdExtra        Titanicp data.frame          1309x6
72 vcdExtra        Toxaemia data.frame            60x5
73 vcdExtra         Vietnam data.frame            40x4
74 vcdExtra        Vote1980 data.frame            28x4
75 vcdExtra       WorkerSat data.frame             8x4
76 vcdExtra     Yamaguchi87 data.frame            75x4
                                                   Title
1                               Arthritis Treatment Data
2                                          Baseball Data
3                                   Broken Marriage Data
4                     Ergebnisse der Fussball-Bundesliga
5                Votes in German Bundestag Election 2005
6                            Butterfly Species in Malaya
7               Breathlessness and Wheeze in Coal Miners
8                              Danish Welfare Study Data
9                                      Employment Status
10                            'May' in Federalist Papers
11                                          Hitters Data
12                                  Death by Horse Kicks
13                                         Hospital data
14                                 Job Satisfaction Data
15                           Opinions About Joint Sports
16                              Lifeboats on the Titanic
17                       Diagnosis of Multiple Sclerosis
18                              Non-Response Survey Data
19                                     Ovary Cancer Data
20                           Pre-marital Sex and Divorce
21                              Corporal Punishment Data
22                             Repeat Victimization Data
23                                         Rochdale Data
24                                    Families in Saxony
25                                            Sex is Fun
26                         Space Shuttle O-ring Failures
27                              Suicide Rates in Germany
28                                  Truck Accidents Data
29                                      UK Soccer Scores
30                  Visual Acuity in Left and Right Eyes
31                      Von Bortkiewicz Horse Kicks Data
32                                    Weldon's Dice Data
33                                       Women in Queues
34                                 Abortion Opinion Data
35            Traffic Accident Victims in France in 1958
36                                        Air Crash Data
37                                 Alligator Food Choice
38                   Bartlett data on plum root cuttings
39      Burt (1950) Data on Hair, Eyes, Head and Stature
40        Risk Factors for Infection in Caesarian Births
41                    Survival of Breast Cancer Patients
42              Advertising Behavior by Males Cormorants
43                                 London Cycling Deaths
44                Dayton Student Survey on Substance Use
45                            Dependencies of R Packages
46                             Detergent preference data
47                          Survival in the Donner Party
48                           USA 1970 Draft Lottery Data
49                          USA 1970 Draft Lottery Table
50                        Sources of Knowledge of Cancer
51                   Carcinogenic Effects of a Fungicide
52      General Social Survey- Sex and Party affiliation
53                Geissler's Data on the Human Sex Ratio
54          Clothing and Intelligence Rating of Children
55              British Social Mobility from Glass(1954)
56    Hair Color and Eye Color in Caithness and Aberdeen
57                 Hauser (1979) Data on Social Mobility
58                     Sex, Occupation and Heart Disease
59 Labour Force Participation of Married Women 1967-1971
60                                  Hospital Visits Data
61                       Minnesota High School Graduates
62                                          ICU data set
63    Cross-classification of job satisfaction by income
64                                     Mammogram Ratings
65                     Mental impariment and parents SES
66                                   Mice Depletion Data
67                                  Social Mobility data
68                        Publications of PhD Candidates
69                   Shakespeare's Word Type Frequencies
70                                       TV Viewing Data
71                             Passengers on the Titanic
72                        Toxaemia Symptoms in Pregnancy
73                 Student Opinion about the Vietnam War
74       Race and Politics in the 1980 Presidential Vote
75                              Worker Satisfaction Data
76              Occupational Mobility in Three Countries
                     Item      class     dim
1           AirPassengers         ts     144
2                 BJsales         ts     150
3            BJsales.lead         ts     150
4                     BOD data.frame     6x2
5                     CO2 data.frame    84x5
6             ChickWeight data.frame   578x4
7                   DNase data.frame   176x3
8          EuStockMarkets     matrix  1860x4
9            Formaldehyde data.frame     6x2
10           HairEyeColor      table   4x4x2
11           Harman23.cor       list       3
12           Harman74.cor       list       3
13               Indometh data.frame    66x3
14           InsectSprays data.frame    72x2
15         JohnsonJohnson         ts      84
16              LakeHuron         ts      98
17       LifeCycleSavings data.frame    50x5
18               Loblolly data.frame    84x3
19                   Nile         ts     100
20                 Orange data.frame    35x3
21          OrchardSprays data.frame    64x4
22            PlantGrowth data.frame    30x2
23              Puromycin data.frame    23x3
24              Seatbelts         ts   192x8
25                 Theoph data.frame   132x5
26                Titanic      table 4x2x2x2
27            ToothGrowth data.frame    60x3
28          UCBAdmissions      table   2x2x6
29         UKDriverDeaths         ts     192
30                  UKgas         ts     108
31            USAccDeaths         ts      72
32              USArrests data.frame    50x4
33         USJudgeRatings data.frame   43x12
34  USPersonalExpenditure     matrix     5x5
35              UScitiesD       dist      45
36               VADeaths     matrix     5x4
37               WWWusage         ts     100
38            WorldPhones     matrix     7x7
39            ability.cov       list       3
40               airmiles         ts      24
41             airquality data.frame   153x6
42               anscombe data.frame    11x8
43                 attenu data.frame   182x5
44               attitude data.frame    30x7
45                austres         ts      89
46                beaver1 data.frame   114x4
47                beaver2 data.frame   100x4
48                   cars data.frame    50x2
49               chickwts data.frame    71x2
50                    co2         ts     468
51                crimtab      table   42x22
52            discoveries         ts     100
53                  esoph data.frame    88x5
54                   euro    numeric      11
55             euro.cross     matrix   11x11
56               eurodist       dist     210
57               faithful data.frame   272x2
58                fdeaths         ts      72
59                 freeny data.frame    39x5
60               freeny.x     matrix    39x4
61               freeny.y         ts      39
62                 infert data.frame   248x8
63                   iris data.frame   150x5
64                  iris3      array  50x4x3
65                islands    numeric      48
66                ldeaths         ts      72
67                     lh         ts      48
68                longley data.frame    16x7
69                   lynx         ts     114
70                mdeaths         ts      72
71                 morley data.frame   100x3
72                 mtcars data.frame   32x11
73                 nhtemp         ts      60
74                 nottem         ts     240
75                    npk data.frame    24x5
76     occupationalStatus      table     8x8
77                 precip    numeric      70
78             presidents         ts     120
79               pressure data.frame    19x2
80                 quakes data.frame  1000x5
81                  randu data.frame   400x3
82                 rivers    numeric     141
83                   rock data.frame    48x4
84                  sleep data.frame    20x3
85             stack.loss    numeric      21
86                stack.x     matrix    21x3
87              stackloss data.frame    21x4
88              state.abb  character      50
89             state.area    numeric      50
90           state.center       list       2
91         state.division     factor      50
92             state.name  character      50
93           state.region     factor      50
94              state.x77     matrix    50x8
95          sunspot.month         ts    3177
96           sunspot.year         ts     289
97               sunspots         ts    2820
98                  swiss data.frame    47x6
99               treering         ts    7980
100                 trees data.frame    31x3
101                 uspop         ts      19
102               volcano     matrix   87x61
103            warpbreaks data.frame    54x3
104                 women data.frame    15x2
                                                 Title
1          Monthly Airline Passenger Numbers 1949-1960
2                    Sales Data with Leading Indicator
3                    Sales Data with Leading Indicator
4                            Biochemical Oxygen Demand
5                Carbon Dioxide Uptake in Grass Plants
6       Weight versus age of chicks on different diets
7                                 Elisa assay of DNase
8   Daily Closing Prices of Major European Stock Indic
9                        Determination of Formaldehyde
10           Hair and Eye Color of Statistics Students
11                                  Harman Example 2.3
12                                  Harman Example 7.4
13                    Pharmacokinetics of Indomethacin
14                      Effectiveness of Insect Sprays
15      Quarterly Earnings per Johnson & Johnson Share
16                       Level of Lake Huron 1875-1972
17                Intercountry Life-Cycle Savings Data
18                       Growth of Loblolly pine trees
19                              Flow of the River Nile
20                              Growth of Orange Trees
21                           Potency of Orchard Sprays
22          Results from an Experiment on Plant Growth
23          Reaction Velocity of an Enzymatic Reaction
24            Road Casualties in Great Britain 1969-84
25                    Pharmacokinetics of Theophylline
26               Survival of passengers on the Titanic
27  The Effect of Vitamin C on Tooth Growth in Guinea 
28                   Student Admissions at UC Berkeley
29            Road Casualties in Great Britain 1969-84
30                        UK Quarterly Gas Consumption
31               Accidental Deaths in the US 1973-1978
32                     Violent Crime Rates by US State
33  Lawyers' Ratings of State Judges in the US Superio
34                           Personal Expenditure Data
35  Distances Between European Cities and Between US C
36                      Death Rates in Virginia (1940)
37                           Internet Usage per Minute
38                              The World's Telephones
39                      Ability and Intelligence Tests
40  Passenger Miles on Commercial US Airlines, 1937-19
41                   New York Air Quality Measurements
42  Anscombe's Quartet of 'Identical' Simple Linear Re
43                   The Joyner-Boore Attenuation Data
44                  The Chatterjee-Price Attitude Data
45  Quarterly Time Series of the Number of Australian 
46              Body Temperature Series of Two Beavers
47              Body Temperature Series of Two Beavers
48                Speed and Stopping Distances of Cars
49                        Chicken Weights by Feed Type
50             Mauna Loa Atmospheric CO2 Concentration
51                       Student's 3000 Criminals Data
52             Yearly Numbers of Important Discoveries
53           Smoking, Alcohol and (O)esophageal Cancer
54                 Conversion Rates of Euro Currencies
55                 Conversion Rates of Euro Currencies
56  Distances Between European Cities and Between US C
57                            Old Faithful Geyser Data
58         Monthly Deaths from Lung Diseases in the UK
59                               Freeny's Revenue Data
60                               Freeny's Revenue Data
61                               Freeny's Revenue Data
62  Infertility after Spontaneous and Induced Abortion
63                          Edgar Anderson's Iris Data
64                          Edgar Anderson's Iris Data
65               Areas of the World's Major Landmasses
66         Monthly Deaths from Lung Diseases in the UK
67                Luteinizing Hormone in Blood Samples
68                  Longley's Economic Regression Data
69            Annual Canadian Lynx trappings 1821-1934
70         Monthly Deaths from Lung Diseases in the UK
71                       Michelson Speed of Light Data
72                          Motor Trend Car Road Tests
73            Average Yearly Temperatures in New Haven
74  Average Monthly Temperatures at Nottingham, 1920-1
75              Classical N, P, K Factorial Experiment
76       Occupational Status of Fathers and their Sons
77                   Annual Precipitation in US Cities
78         Quarterly Approval Ratings of US Presidents
79  Vapor Pressure of Mercury as a Function of Tempera
80                   Locations of Earthquakes off Fiji
81    Random Numbers from Congruential Generator RANDU
82              Lengths of Major North American Rivers
83              Measurements on Petroleum Rock Samples
84                                Student's Sleep Data
85                    Brownlee's Stack Loss Plant Data
86                    Brownlee's Stack Loss Plant Data
87                    Brownlee's Stack Loss Plant Data
88                          US State Facts and Figures
89                          US State Facts and Figures
90                          US State Facts and Figures
91                          US State Facts and Figures
92                          US State Facts and Figures
93                          US State Facts and Figures
94                          US State Facts and Figures
95        Monthly Sunspot Data, from 1749 to "Present"
96                      Yearly Sunspot Data, 1700-1988
97                  Monthly Sunspot Numbers, 1749-1983
98  Swiss Fertility and Socioeconomic Indicators (1888
99                    Yearly Treering Data, -6000-1979
100    Girth, Height and Volume for Black Cherry Trees
101              Populations Recorded by the US Census
102 Topographic Information on Auckland's Maunga Whau 
103        The Number of Breaks in Yarn during Weaving
104     Average Heights and Weights for American Women

vcdExtra documentation built on May 31, 2017, 4:57 a.m.