Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Apress committed Oct 18, 2016
0 parents commit c3b279a
Show file tree
Hide file tree
Showing 27 changed files with 268 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Individual Datasets/CIAdata1.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
country,lifeExp,urban,pcGDP
Finland,79.41,85,36700
Slovakia,76.03,55,23600
UK,80.17,80,36600
Ukraine,68.74,69,7300
Spain,81.27,77,31000
4 changes: 4 additions & 0 deletions Individual Datasets/CIAdata2.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
country,pcGDP,lifeExp,urban
Italy,30900,81.86,68
Croatia,18400,75.99,58
Slovakia,23600,76.03,55
8 changes: 8 additions & 0 deletions Individual Datasets/CPIdata.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
country,CPI
Spain,80.24
UK,100.13
Croatia,67.54
Italy,94.82
Ukraine,51.1
Finland,99.69
Spain,80.24
6 changes: 6 additions & 0 deletions Individual Datasets/WHOdata.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
alcohol,mortality
12.52,91
13.33,130
13.37,77
15.6,274
11.62,68
33 changes: 33 additions & 0 deletions Individual Datasets/apartments.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
"Town","Furnished","Price.Cat"
"Stansted","No","�551-600"
"Sawbridgeworth","No","�551-600"
"Stansted","No","�601-650"
"Stansted","Yes","�651+"
"Stansted","No","�551-600"
"Sawbridgeworth","No","�551-600"
"Sawbridgeworth","No","�601-650"
"Stansted","No","�551-600"
"Bishops Stortford","No","�651+"
"Sawbridgeworth","No","�551-600"
"Stansted","No","�601-650"
"Old Harlow","Yes","�601-650"
"Bishops Stortford","No","�551-600"
"Bishops Stortford","Yes","�551-600"
"Bishops Stortford","No","�551-600"
"Harlow",,"�601-650"
"Stansted","Yes","�500-550"
"Bishops Stortford","No","�551-600"
"Stansted",,"�500-550"
"Bishops Stortford",,"�601-650"
"Bishops Stortford","No","�551-600"
"Sawbridgeworth","No","�500-550"
"Sawbridgeworth","No","�551-600"
"Stansted","Yes","�500-550"
"Bishops Stortford","No","�651+"
"Bishops Stortford","Yes","�601-650"
"Sawbridgeworth","No","�500-550"
"Bishops Stortford","No","�651+"
"Bishops Stortford","Yes","�551-600"
"Sawbridgeworth","No","�601-650"
"Bishops Stortford","No","�651+"
"Sawbridgeworth","No","�651+"
5 changes: 5 additions & 0 deletions Individual Datasets/bigcats.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Name,Weight
Tiger,203
Leopard,64
Leopard,58
Lion,200
21 changes: 21 additions & 0 deletions Individual Datasets/bottles.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Volume
484.11
459.49
471.38
512.01
494.48
528.63
493.64
485.03
473.88
501.59
502.85
538.08
465.68
495.03
475.32
529.41
518.13
464.32
449.08
489.27
11 changes: 11 additions & 0 deletions Individual Datasets/brains.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Pair,Twin1,Twin2
1,1005,963
2,1035,1027
3,1281,1272
4,1051,1079
5,1034,1070
6,1079,1173
7,1104,1067
8,1439,1347
9,1029,1100
10,1160,1204
6 changes: 6 additions & 0 deletions Individual Datasets/coffeeshop.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Date,Sales
21/NOV/2011,2144.88
22/NOV/2011,1702.99
23/NOV/2011,2731.45
24/NOV/2011,1943.04
25/NOV/2011,1862.09
13 changes: 13 additions & 0 deletions Individual Datasets/concrete.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Cement,Additive,Additive Dose,Density
I,A,0.3,2.43
II,A,0.3,2.431
I,B,0.3,2.43
II,B,0.3,2.418
I,A,0.4,2.419
II,A,0.4,2.436
I,B,0.4,2.435
II,B,0.4,2.414
I,A,0.5,2.419
II,A,0.5,2.425
I,B,0.5,2.422
II,B,0.5,2.41
6 changes: 6 additions & 0 deletions Individual Datasets/customers.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"Name","Address"
"Mr A. Jackson","17 Bridge Street, Reading, RG3 2QN"
"Ms D. Phillips","112 park avenue, reading, berkshire, RG21NY"
"Mrs S. O'Neill","Flat 1, 72 Norfolk Road, Maidenhead, SL6 7AZ"
"Mr D. Singh","373 Castle Lane, READING, RG5 2LL"
"Mr A. Rojas","2 Green Lane, Wokingham, RG40 2NA"
5 changes: 5 additions & 0 deletions Individual Datasets/endangered.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Name,Status
Lion,Vulnerable
Leopard,Least Concern
Tiger,Endangered
Leopard,Endangered
6 changes: 6 additions & 0 deletions Individual Datasets/fiveyearreport.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Year,Tesco,Sainsburys,Morrisons
2007,35580,18518,12462
2008,37949,19287,12969
2009,41520,20383,14528
2010,42254,21421,15410
2011,44570,22943,16479
8 changes: 8 additions & 0 deletions Individual Datasets/flights.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Date,Time,Flight Number,Destination
12/01/2012,20:30,BE898,GLASGOW
12/01/2012,20:35,BE775,EDINBURGH
13/01/2012,06:50,BE382,DUBLIN
13/01/2012,07:00,BE861,MANCHESTER
13/01/2012,07:05,BE1011,AMSTERDAM
13/01/2012,08:00,AF6541,RENNES
13/01/2012,08:00,BE3025,RENNES
9 changes: 9 additions & 0 deletions Individual Datasets/fruit.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Product,Price,Unit
Apricots,10,per kg
Baby Watermelon,2,each
Bananas,0.68,per kg
Blush Pears,2.1,per kg
Braeburn Apples,1.65,per kg
Bramley Cooking Apples,1.55,per kg
Cantaloupe Melon,2,each

6 changes: 6 additions & 0 deletions Individual Datasets/grades1.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ClassA,ClassB,ClassC
87,83,80
64,97,86
89,97,80
82,99,80
59,92,84
17 changes: 17 additions & 0 deletions Individual Datasets/people.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Subject,Eye Color,Height,Hand Span,Sex,Handedness
1,Brown,186,210,1,R
2,Green,182,220,1,R
3,Brown,147,167,2,NA
4,Green,157,180,2,L
5,Brown,170,193,1,R
6,Blue,169,190,2,L
7,brown,174,217,1,R
8,Blue,173,211,1,R
9,Blue,166,193,2,R
10,Blue,166,178,2,R
11,Brown,163,223,1,R
12,Blue,184,225,1,R
13,Blue,176,214,1,NA
14,Blue,183,218,1,R
15,Green,160,190,2,NA
16,Brown,173,196,1,R
17 changes: 17 additions & 0 deletions Individual Datasets/people2.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Subject,Eye Color,Height,Hand Span,Sex,Handedness,Height Cat
1,Brown,186,210,Male,R,Tall
2,Green,182,220,Male,R,Tall
3,Brown,147,167,Female,NA,NA
4,Green,157,180,Female,L,Short
5,Brown,170,193,Male,R,Medium
6,Blue,169,190,Female,L,Medium
7,Brown,174,217,Male,R,Medium
8,Blue,173,211,Male,R,Medium
9,Blue,166,193,Female,R,Medium
10,Blue,166,178,Female,R,Medium
11,Brown,163,223,Male,R,Medium
12,Blue,184,225,Male,R,Tall
13,Blue,176,214,Male,NA,Medium
14,Blue,183,218,Male,R,Tall
15,Green,160,190,Female,NA,Short
16,Brown,173,196,Male,R,Medium
31 changes: 31 additions & 0 deletions Individual Datasets/powerplant.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Pressure,Temp,Output
1005.0625,11,143.140625
1008.5,4.733698845,149.3828125
1027.375,9.75,147.8507233
1011.34375,14,136.765625
1014.1521,3.6875,150.1953125
1020.34375,14.8125,142.4921875
1011.679688,6.804058552,147.6778259
1016.774048,7,153.3828125
989.9671021,7.875,145.1015625
995.53125,8.8125,141.390625
1017.4375,11.5625,145.015625
1005.202209,5,148.34375
1013.96875,13.12071609,142.9609375
1012.15625,18.75,138.3203125
988.0646973,1.998522997,151.2570496
992.8093262,5.0625,146.0078125
1009.584106,14.0625,141.15625
1011.125,13.625,138.21875
1013.8125,1.367719412,153
994.96875,8.375,146.734375
1018.59375,14,142.5078125
1020.46875,8.094125748,152.1484375
1006.960449,9.1875,142.4921875
1020.237427,13.6875,143.90625
1012.9375,14,142.1906433
1023.319092,13.5,141.1328125
997.34375,9.401650429,141.0625
1030.3125,19.0625,141.3671875
1026.125,18.875,140.1875
1029.625,13,145.0233917
5 changes: 5 additions & 0 deletions Individual Datasets/pulserates.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Patient,Pulse1,Pulse2,Pulse3
3051,70,77,73
3052,65,66,56
3053,64,58,60
3054,53,58,56
5 changes: 5 additions & 0 deletions Individual Datasets/resistance.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Formula,Day3,Day7,Day14
A,10.8,18.5,41.3
B,20.1,29.2,37
C,3.7,17.5,28.9
D,18.1,27.2,37.6
5 changes: 5 additions & 0 deletions Individual Datasets/supermarkets.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Chain,Stores,Sales Area,Market Share
Morrisons,439,12261,12.3
Asda,,,16.9
Tesco,2715,36722,30.3
Sainsburys,934,19108,16.5
5 changes: 5 additions & 0 deletions Individual Datasets/supermarkets.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Chain Stores Sales Area Market Share
Morrisons 439 12261 12.3
Asda NA NA 16.9
Tesco 2715 36722 30.3
Sainsburys 934 19108 16.5
5 changes: 5 additions & 0 deletions Individual Datasets/supermarkets2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Chain/Stores/Sales Area/Market Share
Morrisons/439/12261/12.3
Asda///16.9
Tesco/2715/36722/30.3
Sainsburys/934/19108/16.5
13 changes: 13 additions & 0 deletions Individual Datasets/vitalsigns.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
subject,test,result
1733,Pulse,120
1733,DiaBP,79
1733,SysBP,79
1734,Pulse,121
1734,DiaBP,86
1734,SysBP,72
1735,Pulse,130
1735,DiaBP,94
1735,SysBP,74
1736,Pulse,142
1736,DiaBP,99
1736,SysBP,87
Binary file added Using_R_for_Statistics.RData
Binary file not shown.
12 changes: 12 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
This zip file contains the example datasets for use with the book 'Using R for Statistics'
by Sarah Stowell and published by Apress (IBSN: 978-1-4842-0140-4).

The file 'Using_R_for_Statistics.RData' is an R Workspace file that contains all of the
datasets used in the book (except for the supermarkets dataset, as it is left as an
exercise for the reader to import this dataset into R). You will learn how to Import R
Workspace files in Chapter 1 (under "Workspaces").

The 'Individual Datasets' folder contains each of the datasets in individual csv files.
The supermarkets dataset is also available in tab-delimited format (supermarkets.txt)
and a custom format (supermarkets2.txt). You will learn how to import plain text files in
Chapter 2 (under "Importing Plain Text Files").

0 comments on commit c3b279a

Please sign in to comment.