[R-sig-finance] SUMMARY: Copying previous observation for NA values (LOCF)

Ajay Shah ajayshah at mayin.org
Mon Sep 27 11:03:13 CEST 2004


On Mon, Sep 27, 2004 at 10:52:53AM +0200, Martin Maechler wrote:
>     Ajay> R code which puts together the above 4 solutions and compares their
>     Ajay> performance is placed ahead. It uses 3 data files. You can pickup
>     Ajay> these data files at /home/ajayshah/public_html/datafiles.tar.bz2
> 
> oops! I'm pretty sure you meant
>       http://www.mayin.org/ajayshah/datafiles.tar.bz2
> 
> BUT,
> the file is a bit misnomed :
> 
> After downloading
>   {maechler}202> bunzip2 ~/datafiles.tar.bz2
>   bunzip2: /u/maechler/datafiles.tar.bz2 is not a bzip2 file.
>   {maechler}203> file ~/datafiles.tar.bz2
>   /u/maechler/datafiles.tar.bz2: gzip compressed data, from Unix
>   {maechler}204> mv ~/datafiles.tar.bz2 ~/datafiles.tar.gz
>   {maechler}205> gunzip datafiles.tar.gz
> 
> i.e., I think it should have been named  datafiles.tar.gz

Ouch! Sorry for the mistake. You are of course right.

$ file ~/public_html/datafiles.tar.bz2 
/home/ajayshah/public_html/datafiles.tar.bz2: gzip compressed data, from Unix
$ cd public_html/    
$ cp datafiles.tar.bz2 datafiles.tar.gz  
$ update-page
ajayshah at 66.216.80.49's password: 

So the old file (datafiles.tar.bz2) is still there as is the correct
file datafiles.tar.gz

-- 
Ajay Shah                                                   Consultant
ajayshah at mayin.org                      Department of Economic Affairs
http://www.mayin.org/ajayshah           Ministry of Finance, New Delhi



More information about the R-sig-finance mailing list