An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20081205/a0bf4459/attachment.pl>
(no subject)
3 messages · Jeff Ryan, Dirk Eddelbuettel, sprohl at na.uni-tuebingen.de
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.
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.