Hi Brodi,
the problem is the row.names=2 argument. This is pulling x1 (the
second column) out and using it for the rownames. If you omit the
row.names argument entirely you should be able to read the data in
correctly.
Hope this helps.
Best,
Kevin
On Wed, 15 Dec 2004, Brodi Kemp wrote:
Another elementary question.
I have a 'y' variable but no x1 !!
Code:
hw10dat <- read.table("hw10data.dat", header=T, row.names=2)
attach(hw10dat)
help?