[R] write.table command

Simon Blomberg Simon.Blomberg at anu.edu.au
Wed Mar 29 02:49:07 CEST 2006


The help file for load says that it is to be used for objects saved 
using the save command. Perhaps you should try read.table.

Cheers,

Simon.

Abd Rahman Kassim wrote:
> Dear All,
>
>
> I'm trying to save  a dataframe using write.table command. It works, but when I retrieved, there's an error message as shown below:
>
>   
>>   write.table(soil.dat,file="C:/soil.rdata")
>>   load("C:/soil.rdata")
>>     
> Error: bad restore file magic number (file may be corrupted)-- no data loaded
>
>
> I can figure out the error message. Any assistance to solve the problem is very much appreciated.
>
> Regards.
>
> Abd. Rahman Kassim, PhD
> Forest Management & Ecology Program
> Forestry & Conservation Division
> Forest Research Institute Malaysia
> Kepong 52109 Selangor
> Malaysia
>
> Fax: 603-62729852
> Tel: 603-62797179
>
>
>
> *****************************************
>
>
> *****************************************
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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
>
>   


-- 
Simon Blomberg, B.Sc.(Hons.), Ph.D, M.App.Stat.
Centre for Resource and Environmental Studies
The Australian National University
Canberra ACT 0200
Australia
T: +61 2 6125 7800 email: Simon.Blomberg_at_anu.edu.au
F: +61 2 6125 0757
CRICOS Provider # 00120C




More information about the R-help mailing list