Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

MERGE/BIND two dataframes with some overlapping columns

  • tarrafno
  • tarrafno's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #221945 by tarrafno
Hi!

I have two data frames. These are are two waves of the same survey, so they were filled out by the same people. Some of the column names are thus identical (.e.g email) and some are different (e.g. "question123" in dataframe A and "question678" in dataframe B".
I want to merge these two data frames so I have one row for every participant. The columns that overlap would ideally then also only exist once. 
I tried to use the command "merge" to merge both dataframes but when I do this, every column gets doubled and I end up with two columns e.g. email.x and email.y with the same content.
How do I best do this?
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
3 years 5 months ago #221946 by tammo
This is the LimeSurvey forum. For data science best turn to specific sites like:

www.programmingr.com/examples/r-dataframe/merge-data-frames/


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The following user(s) said Thank You: DenisChenu
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose