I used RBIND to stack 3 datasets no column names: combined <- rbind(df1, df2, df3)
It worked fine.
It assigned X1, X2 and X3 to the columns.
I renamed the columns using:
names(combineddf)[names(combineddf)=="X1"] <- "date"
I used head(combineddf)
to verify it worked. I see the new "date" name.
But where I reference "date" I get an error.
When I do str(combineddf)
I still see X1, X2 X3.
How do I fix this, and why is R doing this?