I am trying to convert .csv
files to the xts format using the following code:
library(highfrequency)
library(timeDate)
from="05/03/2018";
to="09/03/2018";
datasource= "C:/Users/Sha/Desktop/SUSU"
datadestination= "C:/Users/Sha/Desktop/SUSU"
convert(from,to,datasource,datadestination,trades=TRUE, quotes=FALSE, ticker= c("EURAUD","EURCAD"), dir=TRUE, extension="csv",header=TRUE,tradecolnames=c("Date","Time","Ask"), format="%d%m%Y %H:%M:%S", onefile=TRUE)
I don't understand why I am obtaining the following error:
Error in convert(from, to, datasource, :
could not find function "convert"
If someone could help me with this? Am I making mistake to understand how to use the package?