Lab 2: W, 1/28, 4:30-5:20; HAMP 3144; due R, 1/29, 11:59pm

Lab 2 R Tutorial
Lab 2 SAS Tutorial

Lab 2
Earth Density .txt File

Lab 2 R KEY
Lab 2 SAS KEY

To open a .txt data file in R from a webiste, utilize the following commands in the console:
lab2dataset = url("www.stat.purdue.edu/~jtroisi/STAT350Spring2015/labs/lab2/lab2dataset.txt", 'r') #Utilize 'r' input if the first line/row in the .txt data file is variable names. Else, omit 'r' input.
read.table(lab2dataset, header = TRUE) #header=TRUE if the first line/row in the .txt is variable names. Else, input defaults to header=FALSE