Importing Business Climate Index from IFO
[This article was first published on Copula, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
CESifo Group in Munich is publishing a couple of very good articles covering the EU Region.Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
In a most recent research I’m trying to use the monthly Business Climate Index from ifo as a layer to trigger further trading activities in R.
Here are further Details about the index Business Climate Index
First we need to import the monthly Data in R.
I’m using the following function to create the object and convert the date to something useable.
#————————————————-
loadifo<-function(){
a=read.table(“ifo.csv”,sep = “,”,dec = “,”)
a$date = paste(substr(a$V1,5,8),substr(a$V1,2,3),”01″,sep=”-“)
ifo=a$date
ifo=cbind(ifo,a$V2)
colnames(ifo, do.NULL = FALSE)
colnames(ifo) <-c("date","klima")
rm(a)
return(ifo)
}
#————————————————-
To leave a comment for the author, please follow the link and comment on their blog: Copula.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.