Displaying 1 result from an estimated 1 matches for "ax_rev".
Did you mean:
max_rev
2007 Dec 24
1
Help with read.zoo and transform
R
I get a daily feed of data over the internet that I keep in various .csv
files.
I have built a function that reads that data into R for me:
getMarketData<-function(market)
{
library(zoo)
pathname<- "C:/DATA/"
files<-c("AN_REV.csv","AX_REV.csv","BN_REV.csv")
markets<-c("AUS","DAX","GBP")
df<-read.zoo(paste(pathname,files[match(market,markets)],sep=""),
index.column=1, format="%m/%d/%Y", header=F, sep=",")
df
}
This works fine and returns the dataset...