Re: [R] Reading contingency tables

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Fri 19 Jan 2007 - 07:08:21 GMT

On Fri, 19 Jan 2007, Prof Brian Ripley wrote:

> You cannot seek on a url() connection. Try downloading the file and reading
> it locally.

You will need to edit it to fit the ftable format as well.

> There's a bug in the function which forgets to open its temporary file: I
> will attend to that.

It was a bit worse than just that: fixed in 2.4.1 patched.

>
> On Thu, 18 Jan 2007, Giovanni Petris wrote:
>
>>
>> I am trying to read an ftable using read.ftable, but I get the
>> following error message:
>>
>>> jobSatTable <-
>>> read.ftable("http://definetti.uark.edu/~gpetris/stat5333/jobSatisfaction.dat",skip=2)
>> Error in seek(file, where = 0) : no applicable method for "seek"
>> In addition: Warning messages:
>> 1: no non-missing arguments to max; returning -Inf
>> 2: no non-missing arguments to max; returning -Inf
>>
>>
>> I also tried to play with the argument col.vars, to remove blank
>> lines in the file, to remove the blank in "Not
>> satisfied". Unfortunately nothing worked.
>>
>> Can anybody give me a suggestion on how to read that table?
>>
>> Thanks in advance,
>> Giovanni
>>
>> ps:
>>
>>> version
>> _
>> platform sparc-sun-solaris2.8
>> arch sparc
>> os solaris2.8
>> system sparc, solaris2.8
>> status
>> major 2
>> minor 4.1
>> year 2006
>> month 12
>> day 18
>> svn rev 40228
>> language R
>> version.string R version 2.4.1 (2006-12-18)
>>
>>
>
>

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.
Received on Fri Jan 19 18:13:30 2007

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 19 Jan 2007 - 16:30:27 GMT.

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