Learn R Programming

Kmisc (version 0.5.0)

cd: Set Working Directory

Description

A small convenience function that wraps file.path into a setwd call.

Usage

cd(...)

Arguments

...
the set of strings to paste together. if no arguments are submitted, then we return to the home directory.

Examples

Run this code
x <- "my_favourite_dir"
#setwd( "C:/", x, "really_awesome_stuff" )
## calls setwd( paste( "C:/", x, "really_awesome_stuff", collapse="" ) )

Run the code above in your browser using DataLab