Hello,
I'm trying to restructure a single variable. My data currently looks like this:
Whereas i'd like to to have one column for journal name and another column for URL (i don't care about id, i just made this as i thought it might be useful). This seems like a problem I might be able to resolve with -reshape-, but it's not immediately clear to me whether my data is currently wide / long, or something else...
Does anyone have any thoughts?
I'm trying to restructure a single variable. My data currently looks like this:
Code:
clear input str459 v1 float id "JO - American Journal of Political Science" 2 "UR - http://dx.doi.org/10.1111/j.1540-5907.2008.00320.x" 1 "JO - American Journal of Political Science" 2 "UR - http://dx.doi.org/10.1111/ajps.12094" 1 "JO - American Journal of Political Science" 2 "UR - http://dx.doi.org/10.1111/ajps.12220" 1 "JO - American Journal of Political Science" 2 "UR - http://dx.doi.org/10.1111/j.1540-5907.2007.00263.x" 1 "JO - American Journal of Political Science" 2 "UR - http://dx.doi.org/10.1111/1540-5907.00037" 1 "JO - American Journal of Political Science" 2 "UR - http://dx.doi.org/10.1111/ajps.12312" 1 "JO - American Journal of Political Science" 2 "UR - http://dx.doi.org/10.1111/ajps.12315" 1 "JO - American Journal of Political Science" 2 "UR - http://dx.doi.org/10.1111/ajps.12290" 1 "JO - American Journal of Political Science" 2 "UR - http://dx.doi.org/10.1111/ajps.12318" 1 "JO - American Journal of Political Science" 2 "UR - http://dx.doi.org/10.1111/j.1540-5907.2007.00293.x" 1 "JO - American Journal of Political Science" 2 "UR - http://dx.doi.org/10.1111/ajps.12001" 1 "JO - American Journal of Political Science" 2 "UR - http://dx.doi.org/10.1111/j.1540-5907.2007.00267.x" 1 "JO - American Journal of Political Science" 2 "UR - http://dx.doi.org/10.1111/j.1540-5907.2007.00284.x" 1 "JO - American Journal of Political Science" 2 "UR - http://dx.doi.org/10.1111/ajps.12118" 1 "JO - American Journal of Political Science" 2 "UR - http://dx.doi.org/10.1111/1540-5907.00028" 1 end
Whereas i'd like to to have one column for journal name and another column for URL (i don't care about id, i just made this as i thought it might be useful). This seems like a problem I might be able to resolve with -reshape-, but it's not immediately clear to me whether my data is currently wide / long, or something else...
Does anyone have any thoughts?

Comment