p_data: Package Data Sets

Description Usage Arguments Value See Also Examples

View source: R/p_data.R

Description

Generate a script of all data sets contained in package.

Usage

1
p_data(package = "datasets", static = FALSE)

Arguments

package

name of package (default is the base install datasets package).

static

logical. If TRUE a static text document is returned (e.g. data("datasets")).

Value

Returns the data sets of a package as a data.frame. (static = FALSE) or as a static text file (static = TRUE).

See Also

data

Examples

1
2
3
4
5
6
p_data()
p_data(lattice)
## Not run: 
p_data(static=TRUE)

## End(Not run)

Example output

    Data                   Description                                                    
1   AirPassengers          Monthly Airline Passenger Numbers 1949-1960                    
2   BJsales                Sales Data with Leading Indicator                              
3   BJsales.lead (BJsales) Sales Data with Leading Indicator                              
4   BOD                    Biochemical Oxygen Demand                                      
5   CO2                    Carbon Dioxide Uptake in Grass Plants                          
6   ChickWeight            Weight versus age of chicks on different diets                 
7   DNase                  Elisa assay of DNase                                           
8   EuStockMarkets         Daily Closing Prices of Major European Stock Indices, 1991-1998
9   Formaldehyde           Determination of Formaldehyde                                  
10  HairEyeColor           Hair and Eye Color of Statistics Students                      
11  Harman23.cor           Harman Example 2.3                                             
12  Harman74.cor           Harman Example 7.4                                             
13  Indometh               Pharmacokinetics of Indomethacin                               
14  InsectSprays           Effectiveness of Insect Sprays                                 
15  JohnsonJohnson         Quarterly Earnings per Johnson & Johnson Share                 
16  LakeHuron              Level of Lake Huron 1875-1972                                  
17  LifeCycleSavings       Intercountry Life-Cycle Savings Data                           
18  Loblolly               Growth of Loblolly pine trees                                  
19  Nile                   Flow of the River Nile                                         
20  Orange                 Growth of Orange Trees                                         
21  OrchardSprays          Potency of Orchard Sprays                                      
22  PlantGrowth            Results from an Experiment on Plant Growth                     
23  Puromycin              Reaction Velocity of an Enzymatic Reaction                     
24  Seatbelts              Road Casualties in Great Britain 1969-84                       
25  Theoph                 Pharmacokinetics of Theophylline                               
26  Titanic                Survival of passengers on the Titanic                          
27  ToothGrowth            The Effect of Vitamin C on Tooth Growth in Guinea Pigs         
28  UCBAdmissions          Student Admissions at UC Berkeley                              
29  UKDriverDeaths         Road Casualties in Great Britain 1969-84                       
30  UKgas                  UK Quarterly Gas Consumption                                   
31  USAccDeaths            Accidental Deaths in the US 1973-1978                          
32  USArrests              Violent Crime Rates by US State                                
33  USJudgeRatings         Lawyers' Ratings of State Judges in the US Superior Court      
34  USPersonalExpenditure  Personal Expenditure Data                                      
35  UScitiesD              Distances Between European Cities and Between US Cities        
36  VADeaths               Death Rates in Virginia (1940)                                 
37  WWWusage               Internet Usage per Minute                                      
38  WorldPhones            The World's Telephones                                         
39  ability.cov            Ability and Intelligence Tests                                 
40  airmiles               Passenger Miles on Commercial US Airlines, 1937-1960           
41  airquality             New York Air Quality Measurements                              
42  anscombe               Anscombe's Quartet of 'Identical' Simple Linear Regressions    
43  attenu                 The Joyner-Boore Attenuation Data                              
44  attitude               The Chatterjee-Price Attitude Data                             
45  austres                Quarterly Time Series of the Number of Australian Residents    
46  beaver1 (beavers)      Body Temperature Series of Two Beavers                         
47  beaver2 (beavers)      Body Temperature Series of Two Beavers                         
48  cars                   Speed and Stopping Distances of Cars                           
49  chickwts               Chicken Weights by Feed Type                                   
50  co2                    Mauna Loa Atmospheric CO2 Concentration                        
51  crimtab                Student's 3000 Criminals Data                                  
52  discoveries            Yearly Numbers of Important Discoveries                        
53  esoph                  Smoking, Alcohol and (O)esophageal Cancer                      
54  euro                   Conversion Rates of Euro Currencies                            
55  euro.cross (euro)      Conversion Rates of Euro Currencies                            
56  eurodist               Distances Between European Cities and Between US Cities        
57  faithful               Old Faithful Geyser Data                                       
58  fdeaths (UKLungDeaths) Monthly Deaths from Lung Diseases in the UK                    
59  freeny                 Freeny's Revenue Data                                          
60  freeny.x (freeny)      Freeny's Revenue Data                                          
61  freeny.y (freeny)      Freeny's Revenue Data                                          
62  infert                 Infertility after Spontaneous and Induced Abortion             
63  iris                   Edgar Anderson's Iris Data                                     
64  iris3                  Edgar Anderson's Iris Data                                     
65  islands                Areas of the World's Major Landmasses                          
66  ldeaths (UKLungDeaths) Monthly Deaths from Lung Diseases in the UK                    
67  lh                     Luteinizing Hormone in Blood Samples                           
68  longley                Longley's Economic Regression Data                             
69  lynx                   Annual Canadian Lynx trappings 1821-1934                       
70  mdeaths (UKLungDeaths) Monthly Deaths from Lung Diseases in the UK                    
71  morley                 Michelson Speed of Light Data                                  
72  mtcars                 Motor Trend Car Road Tests                                     
73  nhtemp                 Average Yearly Temperatures in New Haven                       
74  nottem                 Average Monthly Temperatures at Nottingham, 1920-1939          
75  npk                    Classical N, P, K Factorial Experiment                         
76  occupationalStatus     Occupational Status of Fathers and their Sons                  
77  precip                 Annual Precipitation in US Cities                              
78  presidents             Quarterly Approval Ratings of US Presidents                    
79  pressure               Vapor Pressure of Mercury as a Function of Temperature         
80  quakes                 Locations of Earthquakes off Fiji                              
81  randu                  Random Numbers from Congruential Generator RANDU               
82  rivers                 Lengths of Major North American Rivers                         
83  rock                   Measurements on Petroleum Rock Samples                         
84  sleep                  Student's Sleep Data                                           
85  stack.loss (stackloss) Brownlee's Stack Loss Plant Data                               
86  stack.x (stackloss)    Brownlee's Stack Loss Plant Data                               
87  stackloss              Brownlee's Stack Loss Plant Data                               
88  state.abb (state)      US State Facts and Figures                                     
89  state.area (state)     US State Facts and Figures                                     
90  state.center (state)   US State Facts and Figures                                     
91  state.division (state) US State Facts and Figures                                     
92  state.name (state)     US State Facts and Figures                                     
93  state.region (state)   US State Facts and Figures                                     
94  state.x77 (state)      US State Facts and Figures                                     
95  sunspot.month          Monthly Sunspot Data, from 1749 to "Present"                   
96  sunspot.year           Yearly Sunspot Data, 1700-1988                                 
97  sunspots               Monthly Sunspot Numbers, 1749-1983                             
98  swiss                  Swiss Fertility and Socioeconomic Indicators (1888) Data       
99  treering               Yearly Treering Data, -6000-1979                               
100 trees                  Girth, Height and Volume for Black Cherry Trees                
101 uspop                  Populations Recorded by the US Census                          
102 volcano                Topographic Information on Auckland's Maunga Whau Volcano      
103 warpbreaks             The Number of Breaks in Yarn during Weaving                    
104 women                  Average Heights and Weights for American Women                 
  Data                Description                                          
1 USMortality         Mortality Rates in US by Cause and Gender            
2 USRegionalMortality Mortality Rates in US by Cause and Gender            
3 barley              Yield data from a Minnesota barley trial             
4 environmental       Atmospheric environmental conditions in New York City
5 ethanol             Engine exhaust fumes from burning ethanol            
6 melanoma            Melanoma skin cancer incidence                       
7 singer              Heights of New York Choral Society singers           
Data sets in package 'datasets':

AirPassengers           Monthly Airline Passenger Numbers 1949-1960
BJsales                 Sales Data with Leading Indicator
BJsales.lead (BJsales)
                        Sales Data with Leading Indicator
BOD                     Biochemical Oxygen Demand
CO2                     Carbon Dioxide Uptake in Grass Plants
ChickWeight             Weight versus age of chicks on different diets
DNase                   Elisa assay of DNase
EuStockMarkets          Daily Closing Prices of Major European Stock
                        Indices, 1991-1998
Formaldehyde            Determination of Formaldehyde
HairEyeColor            Hair and Eye Color of Statistics Students
Harman23.cor            Harman Example 2.3
Harman74.cor            Harman Example 7.4
Indometh                Pharmacokinetics of Indomethacin
InsectSprays            Effectiveness of Insect Sprays
JohnsonJohnson          Quarterly Earnings per Johnson & Johnson Share
LakeHuron               Level of Lake Huron 1875-1972
LifeCycleSavings        Intercountry Life-Cycle Savings Data
Loblolly                Growth of Loblolly pine trees
Nile                    Flow of the River Nile
Orange                  Growth of Orange Trees
OrchardSprays           Potency of Orchard Sprays
PlantGrowth             Results from an Experiment on Plant Growth
Puromycin               Reaction Velocity of an Enzymatic Reaction
Seatbelts               Road Casualties in Great Britain 1969-84
Theoph                  Pharmacokinetics of Theophylline
Titanic                 Survival of passengers on the Titanic
ToothGrowth             The Effect of Vitamin C on Tooth Growth in
                        Guinea Pigs
UCBAdmissions           Student Admissions at UC Berkeley
UKDriverDeaths          Road Casualties in Great Britain 1969-84
UKgas                   UK Quarterly Gas Consumption
USAccDeaths             Accidental Deaths in the US 1973-1978
USArrests               Violent Crime Rates by US State
USJudgeRatings          Lawyers' Ratings of State Judges in the US
                        Superior Court
USPersonalExpenditure   Personal Expenditure Data
UScitiesD               Distances Between European Cities and Between
                        US Cities
VADeaths                Death Rates in Virginia (1940)
WWWusage                Internet Usage per Minute
WorldPhones             The World's Telephones
ability.cov             Ability and Intelligence Tests
airmiles                Passenger Miles on Commercial US Airlines,
                        1937-1960
airquality              New York Air Quality Measurements
anscombe                Anscombe's Quartet of 'Identical' Simple Linear
                        Regressions
attenu                  The Joyner-Boore Attenuation Data
attitude                The Chatterjee-Price Attitude Data
austres                 Quarterly Time Series of the Number of
                        Australian Residents
beaver1 (beavers)       Body Temperature Series of Two Beavers
beaver2 (beavers)       Body Temperature Series of Two Beavers
cars                    Speed and Stopping Distances of Cars
chickwts                Chicken Weights by Feed Type
co2                     Mauna Loa Atmospheric CO2 Concentration
crimtab                 Student's 3000 Criminals Data
discoveries             Yearly Numbers of Important Discoveries
esoph                   Smoking, Alcohol and (O)esophageal Cancer
euro                    Conversion Rates of Euro Currencies
euro.cross (euro)       Conversion Rates of Euro Currencies
eurodist                Distances Between European Cities and Between
                        US Cities
faithful                Old Faithful Geyser Data
fdeaths (UKLungDeaths)
                        Monthly Deaths from Lung Diseases in the UK
freeny                  Freeny's Revenue Data
freeny.x (freeny)       Freeny's Revenue Data
freeny.y (freeny)       Freeny's Revenue Data
infert                  Infertility after Spontaneous and Induced
                        Abortion
iris                    Edgar Anderson's Iris Data
iris3                   Edgar Anderson's Iris Data
islands                 Areas of the World's Major Landmasses
ldeaths (UKLungDeaths)
                        Monthly Deaths from Lung Diseases in the UK
lh                      Luteinizing Hormone in Blood Samples
longley                 Longley's Economic Regression Data
lynx                    Annual Canadian Lynx trappings 1821-1934
mdeaths (UKLungDeaths)
                        Monthly Deaths from Lung Diseases in the UK
morley                  Michelson Speed of Light Data
mtcars                  Motor Trend Car Road Tests
nhtemp                  Average Yearly Temperatures in New Haven
nottem                  Average Monthly Temperatures at Nottingham,
                        1920-1939
npk                     Classical N, P, K Factorial Experiment
occupationalStatus      Occupational Status of Fathers and their Sons
precip                  Annual Precipitation in US Cities
presidents              Quarterly Approval Ratings of US Presidents
pressure                Vapor Pressure of Mercury as a Function of
                        Temperature
quakes                  Locations of Earthquakes off Fiji
randu                   Random Numbers from Congruential Generator
                        RANDU
rivers                  Lengths of Major North American Rivers
rock                    Measurements on Petroleum Rock Samples
sleep                   Student's Sleep Data
stack.loss (stackloss)
                        Brownlee's Stack Loss Plant Data
stack.x (stackloss)     Brownlee's Stack Loss Plant Data
stackloss               Brownlee's Stack Loss Plant Data
state.abb (state)       US State Facts and Figures
state.area (state)      US State Facts and Figures
state.center (state)    US State Facts and Figures
state.division (state)
                        US State Facts and Figures
state.name (state)      US State Facts and Figures
state.region (state)    US State Facts and Figures
state.x77 (state)       US State Facts and Figures
sunspot.month           Monthly Sunspot Data, from 1749 to "Present"
sunspot.year            Yearly Sunspot Data, 1700-1988
sunspots                Monthly Sunspot Numbers, 1749-1983
swiss                   Swiss Fertility and Socioeconomic Indicators
                        (1888) Data
treering                Yearly Treering Data, -6000-1979
trees                   Girth, Height and Volume for Black Cherry Trees
uspop                   Populations Recorded by the US Census
volcano                 Topographic Information on Auckland's Maunga
                        Whau Volcano
warpbreaks              The Number of Breaks in Yarn during Weaving
women                   Average Heights and Weights for American Women

pacman documentation built on May 2, 2019, 1:08 p.m.