Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 3_GETDATA/Getting and Cleaning Data Course Notes.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ $\pagebreak$
* ***Relative***: `setwd("./data")`, `setwd("../")` = move up in directory
* ***Absolute***: `setwd("/User/Name/data")`
* **Check if file exists and download file**
* `if(!file.exists("data"){dir.create("data")}`
* `if(!file.exists("./data")) {dir.create("./data")}`
* **Download file**
* `download.file(url, destfile= "directory/filname.extension", method = "curl")`
* `method = "curl"` [mac only for https]
Expand Down