forked from rdpeng/RepData_PeerAssessment1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.Rhistory
29 lines (29 loc) · 1.26 KB
/
.Rhistory
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
if(!file.exists("getdata-projectfiles-UCI HAR Dataset.zip")) {
temp <- tempfile()
download.file("http://d396qusza40orc.cloudfront.net/repdata%2Fdata%2Factivity.zip",temp)
unzip(temp)
unlink(temp)
}
data <- read.csv("activity.csv")
if(!file.exists("getdata-projectfiles-UCI HAR Dataset.zip")) {
file <- download.file("http://d396qusza40orc.cloudfront.net/repdata%2Fdata%2Factivity.zip")
unzip(file)
}
data <- read.csv("activity.csv")
if(!file.exists("getdata-projectfiles-UCI HAR Dataset.zip")) {
file <- download.file("http://d396qusza40orc.cloudfront.net/repdata%2Fdata%2Factivity.zip", "activity.zip
")
)
if(!file.exists("getdata-projectfiles-UCI HAR Dataset.zip")) {
file <- download.file("http://d396qusza40orc.cloudfront.net/repdata%2Fdata%2Factivity.zip", "activity.zip")
unzip(file)
}
data <- read.csv("activity.csv")
if(!file.exists("getdata-projectfiles-UCI HAR Dataset.zip")) {
unzip(download.file("http://d396qusza40orc.cloudfront.net/repdata%2Fdata%2Factivity.zip", "getdata-projectfiles-UCI HAR Dataset.zip"))
}
data <- read.csv("activity.csv")
if(!file.exists("getdata-projectfiles-UCI HAR Dataset.zip")) {
unzip(download.file("http://d396qusza40orc.cloudfront.net/repdata%2Fdata%2Factivity.zip", "getdata-projectfiles-UCI HAR Dataset.zip")
}
data <- read.csv("activity.csv")