阅读背景:

合并数据帧以创建纵向数据集

来源:互联网 

I have three cross-sectional data sets, and I am trying to merge them into one longitudinal data set. Some measures are constant (id, sex, community) and others vary over time (x1 and y). I would like to have a long-form final data set with one column for each of the variables mentioned above. I thought merge_recurse() would do the trick but it produces two columns each for y and x1 (although data12 and data14 merge as I had hoped... perhaps because these variables are renamed after the first merge?). Any thoughts on how to do this simply and quickly? Example data below.I have three cross-sectional data sets, and I a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: