[R-SIG-Finance] (no subject)

sprohl at na.uni-tuebingen.de sprohl at na.uni-tuebingen.de
Fri Dec 5 16:53:12 CET 2008


> Dirk,
thanks, it works.
Regards,
Soeren


> On 5 December 2008 at 15:23, jeff.a.ryan at gmail.com wrote:
> | Try:
> |
> | xts(data[,-1],as.Date(data[,1]))
>
> Probably rather
>
> 	 xts(data[,-1], as.Date( as.character(data[,1]) ))
>
> because Soeren used defaults when reading the data
>
> | On Dec 5, 2008 7:50am, sprohl at na.uni-tuebingen.de wrote:
> | > Hello Brian,
> | >
> | > please find attached sample of the data
> | > 'data.frame': 1503 obs. of 2 variables:
> | >
> | > $ X2002.07.01: Factor w/ 1503 levels "2002-07-02","2002-07-03",..: 1 2
> 3
>                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> and got factors rather than character strings.
>
> Dirk
>
> PS I'd prefer it if we concentrated on Finance on this list rather
> than acting as a smaller substitute for r-help. Just saying...
>
> --
> Three out of two people have difficulties with fractions.
>



More information about the R-SIG-Finance mailing list