Example data file for helicopter flying time exercise. See Chapter 1 in Regression and Other Stories.


Load packages

library("rprojroot")
root<-has_file(".ROS-Examples-root")$make_fix_file()

Load data

helicopters <- read.table(root("Helicopters/data","helicopters.txt"), header=TRUE)

Display the example data

print(helicopters)
   Helicopter_ID width_cm length_cm time_sec
1              1      4.6       8.2     1.64
2              1      4.6       8.2     1.74
3              1      4.6       8.2     1.68
4              1      4.6       8.2     1.62
5              1      4.6       8.2     1.68
6              1      4.6       8.2     1.70
7              1      4.6       8.2     1.62
8              1      4.6       8.2     1.66
9              1      4.6       8.2     1.69
10             1      4.6       8.2     1.62
11             2      4.6       8.2     1.62
12             2      4.6       8.2     1.65
13             2      4.6       8.2     1.66
14             2      4.6       8.2     1.63
15             2      4.6       8.2     1.66
16             2      4.6       8.2     1.71
17             2      4.6       8.2     1.64
18             2      4.6       8.2     1.69
19             2      4.6       8.2     1.59
20             2      4.6       8.2     1.61
LS0tCnRpdGxlOiAiUmVncmVzc2lvbiBhbmQgT3RoZXIgU3RvcmllczogSGVsaWNvcHRlcnMiCmF1dGhvcjogIkFuZHJldyBHZWxtYW4sIEplbm5pZmVyIEhpbGwsIEFraSBWZWh0YXJpIgpkYXRlOiAiYHIgZm9ybWF0KFN5cy5EYXRlKCkpYCIKb3V0cHV0OgogIGh0bWxfZG9jdW1lbnQ6CiAgICB0aGVtZTogcmVhZGFibGUKICAgIHRvYzogdHJ1ZQogICAgdG9jX2RlcHRoOiAyCiAgICB0b2NfZmxvYXQ6IHRydWUKICAgIGNvZGVfZG93bmxvYWQ6IHRydWUKLS0tCkV4YW1wbGUgZGF0YSBmaWxlIGZvciBoZWxpY29wdGVyIGZseWluZyB0aW1lIGV4ZXJjaXNlLiBTZWUgQ2hhcHRlcgoxIGluIFJlZ3Jlc3Npb24gYW5kIE90aGVyIFN0b3JpZXMuCgotLS0tLS0tLS0tLS0tCgoKYGBge3Igc2V0dXAsIGluY2x1ZGU9RkFMU0V9CmtuaXRyOjpvcHRzX2NodW5rJHNldChtZXNzYWdlPUZBTFNFLCBlcnJvcj1GQUxTRSwgd2FybmluZz1GQUxTRSwgY29tbWVudD1OQSkKYGBgCgojIyMjIExvYWQgcGFja2FnZXMKCmBgYHtyIH0KbGlicmFyeSgicnByb2pyb290IikKcm9vdDwtaGFzX2ZpbGUoIi5ST1MtRXhhbXBsZXMtcm9vdCIpJG1ha2VfZml4X2ZpbGUoKQpgYGAKCiMjIyMgTG9hZCBkYXRhCgpgYGB7ciB9CmhlbGljb3B0ZXJzIDwtIHJlYWQudGFibGUocm9vdCgiSGVsaWNvcHRlcnMvZGF0YSIsImhlbGljb3B0ZXJzLnR4dCIpLCBoZWFkZXI9VFJVRSkKYGBgCgojIyMjIERpc3BsYXkgdGhlIGV4YW1wbGUgZGF0YQoKYGBge3IgfQpwcmludChoZWxpY29wdGVycykKYGBgCgo=