Merge multiple data frames - Error in match.names(clabs, names(xi)) : names do not match previous names

后端 未结 1 1717
眼角桃花
眼角桃花 2020-12-10 07:17

I\'m getting some really bizarre stuff while trying to merge multiple data frames. Help!

I need to merge a bunch of data frames by the columns \'RID\' and \'VISCODE\

相关标签:
1条回答
  • 2020-12-10 07:58

    Not sure I can help unfortunately but thought I would post as I found this searching for help on this error. What I effectively had was:

    a <- cbind(b,c)
    d <- merge(a,e)
    

    And I got that same error. Using a <- data.frame(b,c) fixed the problem, but I can't work out why.

    object.size(a);1248124200 bytes
    
    object.size(c);1248124032 bytes
    

    So something is different. All classes are the same, str() reveals nothing. I'm stumped.

    Hopefully that aids someone else in the know.

    0 讨论(0)
提交回复
热议问题