*** Extended Example: *** The content of this webpage belongs to
Lecture 2, activity 3.
First, download the txt file from Canvas and import it to this code.
Compared to the example using the Examsquiz.txt, the PopInf data file
has headers this time.
infections <- read.table("PopInf.txt")
Does our dataset have columns headers? Why?
head(infections,10)
LS0tCnRpdGxlOiAiSW4tY2xhc3MgYWN0aXZpdHkgMyBKUyIKb3V0cHV0OiBodG1sX25vdGVib29rCi0tLQoKKioqIEV4dGVuZGVkIEV4YW1wbGU6ICoqKiAKVGhlIGNvbnRlbnQgb2YgdGhpcyB3ZWJwYWdlIGJlbG9uZ3MgdG8gTGVjdHVyZSAyLCBhY3Rpdml0eSAzLgoKCkZpcnN0LCBkb3dubG9hZCB0aGUgdHh0IGZpbGUgZnJvbSBDYW52YXMgYW5kIGltcG9ydCBpdCB0byB0aGlzIGNvZGUuIENvbXBhcmVkIHRvIHRoZSBleGFtcGxlIHVzaW5nIHRoZSBFeGFtc3F1aXoudHh0LCB0aGUgUG9wSW5mIGRhdGEgZmlsZSBoYXMgaGVhZGVycyB0aGlzIHRpbWUuCmBgYHtyfQppbmZlY3Rpb25zIDwtIHJlYWQudGFibGUoIlBvcEluZi50eHQiKQpgYGAKCkRvZXMgb3VyIGRhdGFzZXQgaGF2ZSBjb2x1bW5zIGhlYWRlcnM/IFdoeT8KCmBgYHtyfQpoZWFkKGluZmVjdGlvbnMsMTApCmBgYAoK