Sunday, June 14, 2015

[1] Directories

setwd
Change a current directory.

sample code(s)
# Use a backslash(\) as a directory separator, not a slash(/).
setwd("H:/Quantitative Research/R")


dir()
Show files / directories on the current directory.

sample code(s)
# If there is no fine on the current directory.
dir()
character(0)

getwd()
Show the current directory.

sample code(s)
getwd()
[1] "H:/Quantitative Research/R"

No comments:

Post a Comment