So, I have rows for every clinic visit date. Right now, all clinic visit dates are recorded in the same column under "DateSeen." Instead, I need a single row for every patient ID and I need to create a separate column for their each visit (chronological). For example "first visit, second visit, third visit," etc up to fifth visit.
Can someone help? For obvious reasons, I can't share the actual data but here is some dummy data.
| ID | DateSeen |
| 8 | 5/3/2016 |
| 8 | 6/20/2015 |
| 1 | 12/3/2013 |
| 10 | 2/28/2012 |
| 9 | 9/13/2013 |
| 9 | 8/23/2014 |
| 6 | 7/10/2008 |
| 3 | 1/1/2014 |
| 2 | 6/15/2011 |
| 5 | 4/1/2011 |
| 1 | 2/26/2014 |
| 3 | 4/30/2016 |
| 1 | 8/6/2015 |
| 9 | 5/9/2009 |
| 4 | 10/1/2011 |
| 2 | 7/23/2011 |
| 8 | 10/5/2013 |
| 8 | 1/10/2009 |
| 1 | 8/11/2016 |
| 9 | 6/6/2015 |
| 7 | 9/20/2014 |
| 3 | 11/21/2015 |
| 2 | 3/1/2014 |
| 9 | 1/8/2010 |
| 6 | 8/1/2015 |
| 3 | 8/6/2016 |
| 3 | 11/9/2013 |
| 4 | 8/27/2011 |
| 1 | 7/11/2014 |
| 10 | 10/31/2009 |
| 2 | 4/1/2015 |
| 2 | 8/11/2007 |
| 5 | 7/18/2014 |
| 9 | 10/15/2013 |