Skip to content
Back to formatted view

Raw Message

Message-ID: <DB6PR0501MB27104572451305156ED51D978E6E0@DB6PR0501MB2710.eurprd05.prod.outlook.com>
Date: 2019-02-05T14:06:15Z
From: Johannes Møllerhagen
Subject: Help converting file to XTS

Hello there! I am a master student working on my master thesis, and I am trying to convert some data to xts so I can apply a highfrequency package to it.

At the moment I am trying to use a POSIXct function. I am quite new at this program and I am having some issue. The file is  attached.


The current coding is:


dat<-read_csv("TEL5minint.csv")
xts(dat,order.by=as.POSIXct(dat),"%d/%m/%Y %H:%M")


And the error is:

Error in as.POSIXct.default(dat) :
  do not know how to convert 'dat' to class ?POSIXct?


Any help is appreciated!


Kind Regards

Johannes