I'm really new here and I'm really new in programming language like R. I would like to download 3 time series, choose 2 columns (dates and closing price) from each of them and then merge them into one. Merging them is my problem -- some dates are copied like here:
I tried to use merge.xts() instead of merge() and change .xts into data.frame but it doesn't work.
My code:
#install packages quantmod i Quandl
install.packages(c("quantmod","Quandl"))
library('quantmod')
library('Quandl')
#download data (.xts) using Quandl
Wine<-Quandl("LSE/WINE",type="xts")
#download data from Yahoo!Finance (.xts)
Rennova.Health<-getSymbols("RNVA")
#download data from stooq.pl and change them into xts
data<-read.csv("http://stooq.pl/q/d/l/?s=EUR&i=d",header=TRUE)
EUR<-xts(data[,-1],order.by=as.POSIXct(data[,1]))
#choose closing price and name them
zamkniecie1<-Wine$"Last Close"
zamkniecie2<-RNVA$RNVA.Close
zamkniecie3<-EUR$Zamkniecie
#MARGE! into one
all.in.one<-merge(zamkniecie1, zamkniecie2, zamkniecie3)
Thanks for your help!