Say I have the following data set:
id var1
1 a
1 b
1 c
2 a
2 d
3 a
Is there a way to collapse this to the following?
id var1
1 a; b; c
2 a; d
3 a
Related Posts with Collapse all values of one string variable to one cell per group
Generate new variable in panel data on the condition that another variable is contained within a list.New to this forum, so sorry for the wordy title. I have 9 waves of individual level panel data on d…
Conflicting stationarity test results, how to proceed?Hi there, I have time series data on a number of variables and am hoping to do VAR and VECM analysis…
Execute single commands of a Do-File on MacHello everyone, my question is: How do I execute single commands of a Do-File on a Mac? In Windows …
Graph formatting for Forrest plotsI have generated a meta-analysis forrest plot using metaprop by subgroup (ie presented 2 subanalyses…
LoopDear All, I have a variable, say country, which contains the name of countries in my dataset and I …
Subscribe to:
Post Comments (Atom)
0 Response to Collapse all values of one string variable to one cell per group
Post a Comment