You can change the column names with 'colnames'. If they have the
same number of columns, then you can give them consistent names and
they will 'rbind' together. In the case where they have different
column names, do you want to create as output something with 4 columns
with the missing rows fill
Hi all,
I am trying to to merge two data.frames(kk and ff)
like
> kk
a b d
1 1 4 7
2 2 5 8
3 3 6 9
> ff
a b d
1 2 5 8
2 3 6 9
3 4 7 1
and
g<-rbind(kk,ff)
is working perfectly and giving results
but if any of the column name changed then its giving
"Error in match.names(clabs, names(xi)) :
2 matches
Mail list logo