Thanks Sarah. I have read about the problems with attach(), and I
will try to avoid it.
I have now found the line that's causing the problem is:
setwd(z:/homework)
With that line in place, either in a program or in Rprofile.site (?),
then the moment I run R and simply enter (before reading any
Well, if your problem is that a workspace is being loaded automatically
and you don't want that workspace, you have several options:
1. Use a different directory for each project so that the file loaded
by default is the correct one.
2. Don't save your workspace, but regenerate it each time.
3.
A follow-up on the data/variable issue I posted earlier:
Here was what I did, which might was obviously causing the problem:
I inserted the following line in my file Rprofile.site:
setwd(z:/R)
Then, as soon as I run R (before I read any data) I issue
summary(mydata)
I get summary
Can someone help me with this variable/data reading issue?
I read a csv file and transform/create an additional variable (called y).
The first set of commands below produced different sample statistics
for hw11$y and y
In the second set of command I renameuse the variable name yy, and
sample
Hi,
The obvious answer is don't use attach() and you'll never have
that problem. And see further comments inline.
On Tue, Nov 15, 2011 at 6:05 PM, Steven Yen s...@utk.edu wrote:
Can someone help me with this variable/data reading issue?
I read a csv file and transform/create an additional
5 matches
Mail list logo