[R] Change directory in script
Marc Schwartz
mschwartz at medanalytics.com
Tue Mar 18 20:53:07 CET 2003
>-----Original Message-----
>From: r-help-bounces at stat.math.ethz.ch
>[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Morten
>H Pedersen
>Sent: Tuesday, March 18, 2003 1:38 PM
>To: r-help at stat.math.ethz.ch
>Subject: [R] Change directory in script
>
>
>Is there an R command to change directory? (it would be nice
>to include in scripts to go to the right directory)
>
>Sincerely,
>
>
>Morten H Pedersen, M.D.
Yes. See ?setwd which sets the current working directory along with
getwd(), which gets the current working directory.
HTH,
Marc Schwartz
More information about the R-help
mailing list