Re: [R] Newbie question about read.table

From: Sean O'Riordain <sean.oriordain_at_gmail.com>
Date: Fri 12 May 2006 - 04:05:20 EST

Hi David,

you might need to either:
a) attach(birthweight)
or
b) glm(low~age,binomial, data=birthweight)

refer ?attach / ?glm

cheers,
Sean

On 11/05/06, David Kaplan <dkaplan@udel.edu> wrote:
> Here is the code with the error
>
> birthweight <- read.table("c:/bw.dat", header = T)
> > summary(glm(low~age,binomial))
> Error in eval(expr, envir, enclos) : object "low" not found
> >
>
>
> The read.table function works fine and when look at the data it shows the
> variable names across the top. The data come from SPSS which I read out
> into a .dat file.
>
> Thanks
>
>
> ----- Original Message -----
> From: "Sean O'Riordain" <sean.oriordain@gmail.com>
> To: "David Kaplan" <dkaplan@UDel.Edu>
> Sent: Thursday, May 11, 2006 1:46 PM
> Subject: Re: [R] Newbie question about read.table
>
>
> Hi David,
> Can you show us the code that you're trying to use?
> cheers,
> Sean
>
> On 11/05/06, David Kaplan <dkaplan@udel.edu> wrote:
> > Hi
> >
> > When I use the read.table function with header = T, I notice that it gives
> > me the variable names along the top as I expect. But, when I then attempt
> > an analysis, e.g. regression, it doesn't recognize the variable names. Am
> > I missing a step.
> >
> > Thank you
> >
> > David
> >
> >
> > [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help@stat.math.ethz.ch mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide!
> > http://www.R-project.org/posting-guide.html
> >
>
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri May 12 04:38:45 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 12 May 2006 - 06:10:09 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.