s-news
[Top] [All Lists]

setwd() analogue

To: <s-news@lists.biostat.wustl.edu>
Subject: setwd() analogue
From: "Iyue Sung" <isung@affinnova.com>
Date: Thu, 23 Sep 2004 15:17:24 -0400
Thread-index: AcQpLw7RHV1wUUrgSOSQG+3tfHBv5B4cWwWA
Thread-topic: setwd() analogue
Hi all, 

  I'm trying to specify the working directory from which to read in (and
write to) miscellaneous data.  
The documents and archives seem to suggest something like

> data.wd<-"C:\\Projects\\Data1"
> attach(pos=1, new.database(data.wd)) 

But then, I try to read in a simple file with:

> base<-read.table("myData.csv", sep=",", header=T)

without success.

Could someone provide a tip please?
Basically, I would like to use syntax that is analogous to "setwd()" in
[R].


Thanks,
Iyue




<Prev in Thread] Current Thread [Next in Thread>