[R] can't find "daphnia.txt" and others while working through Crawley's R-Book

Christian Raschke crasch2 at tigers.lsu.edu
Thu Apr 15 18:42:21 CEST 2010


The files associated with the book can be found on the author's website 
here:

http://www.bio.ic.ac.uk/research/mjcraw/therbook/index.htm 
<http://www.bio.ic.ac.uk/research/mjcraw/therbook/data/>

Just download what you need and put the files somewhere where you can 
find them.

HTH,
Christian


On 04/15/2010 11:34 AM, David Hardie wrote:
> Thanks David, but I have searched my hard drive using the search utility in Windows (not just c:\temp - the whole drive) for the file in question and it is not there.  I have also used:
>
> data() to see the names of all dataframes in the datasets package as well as:
>
> data(package=.packages(all.available=TRUE)) to see all available data sets
>
> Both methods provide an extensive list, but not "daphnia.txt"
>
>
>
> -Dave
>
>    
>> CC: r-help at r-project.org
>> From: dwinsemius at comcast.net
>> To: dreamwaters at hotmail.com
>> Subject: Re: [R] can't find "daphnia.txt" and others while working through Crawley's R-Book
>> Date: Thu, 15 Apr 2010 12:28:54 -0400
>>
>>
>> On Apr 15, 2010, at 11:42 AM, David Hardie wrote:
>>
>>      
>>> I have a feeling that this is an embarassingly simple fix, but I've
>>> been at it for most of the morning and can't get things figured out.
>>>
>>> I'm trying to work through some examples in Crawley's "The R Book".
>>> I have installed packages and libraries as described in the book,
>>> but when I try, for example:
>>>
>>> data<-read.table("c:\\temp\\daphnia.txt", header=T)
>>>
>>>
>>> I get:
>>>
>>> Error in file(file, "rt") : cannot open the connection
>>> In addition: Warning message:
>>> In file(file, "rt") :
>>> cannot open file 'c:\temp\daphnia.txt': No such file or directory
>>>
>>>
>>> There is nothing in my c:\temp folder, so I'm not suprised that it
>>> doesn't work, but I can't for the life of me figure out which
>>> package or library I will need to gain access to this and other data
>>> files used in this book.
>>>        
>> This would appear to be more a problem with you lack of understanding
>> regarding the file management utilities of Windows. In Linux or a Mac
>> you could use the locate function to track down where the file ended
>> up, but surely whatever Windows version you have allows such searching.
>>
>> -- 
>> David.
>>      
>>>
>>>
>>> Thanks in advance,
>>>
>>> -Dave
>>>
>>>        
>>
>> David Winsemius, MD
>> West Hartford, CT
>>
>>      
>   		 	   		
> _________________________________________________________________
>
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org 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.
>    


-- 
Christian Raschke
Department of Economics
and
ISDS Research Lab (HSRG)
Louisiana State University
Patrick Taylor Hall, Rm 2128
Baton Rouge, LA 70803
(225)226-0017
crasch2 at lsu.edu



More information about the R-help mailing list