Merge - 'by' must specify a uniquely valid column - For Procedure

I am heving an error using a for procedure:
Error Message: Error in fix.by(by.x, x) : 'by' must specify a uniquely valid column

tab <- read.csv("dados/tabelas.csv", sep = ";" )
View(tab)

count = 1
for (i in tab[, 1]){
print("inicio")
print(paste("identi", tab[count, 1]))
print(paste("tabela", tab[count, 2]))
print("fim")
ident <- tab[count, 1]
tabela1 <- tab[count, 2]
tabela3 <- tab[count, 3]
df1 <- tab[count, 4]
tabela <- Quandl(ident)
tabela2 <- Quandl(ident, transform = "diff")
assign(tabela1, tabela)
assign(tabela3, tabela2)
View(tabela1)
count = count + 1
df <- merge(x = tabela1, y = tabela3, by = "Date", all = TRUE)
assign(df1, df)
}

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.