Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7e357e6

Browse files
committed
Merge pull request sux13#23 from padamson/master
fix missing parenthesis and clean up syntax
2 parents 52f6240 + e9428be commit 7e357e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

3_GETDATA/Getting and Cleaning Data Course Notes.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ $\pagebreak$
6363
* ***Relative***: `setwd("./data")`, `setwd("../")` = move up in directory
6464
* ***Absolute***: `setwd("/User/Name/data")`
6565
* **Check if file exists and download file**
66-
* `if(!file.exists("data"){dir.create("data")}`
66+
* `if(!file.exists("./data")) {dir.create("./data")}`
6767
* **Download file**
6868
* `download.file(url, destfile= "directory/filname.extension", method = "curl")`
6969
* `method = "curl"` [mac only for https]

0 commit comments

Comments
 (0)