Dear experts,
I have a table like this:
Year Violation Year
2010 2005,2006,2007,2008,2009,2010
Both "Year"and "Violation Year" are string. How can I extract the multiple years in "Violation Year" seperately to make the below happen?
Year Violation Year
2010 2005
2010 2006
2010 2007
2010 2008
2010 2009
2010 2010
Thank you so much!
Related Posts with Extract different parts from one variable
why always (invalid nameHere is my code as shown below, when I run it, it always report error "( invalid name". Somebody ple…
Creating a table using -estpost- and -esttab-Hello, my dataset consists of the following variables: id (fund id), date (year month), hret (histo…
Spatial autocorrelation with fixed effects negative binomial regressionHi all, I'm examining the effect of fire occurrence on visits to National Parks and Forests using a…
outreg2 table to pdfDear Statalist I try to make some tables for my bachelor thesis, but have trouble making them look …
How to compare two coefficients in two forthlogit regressions?Hello, As my dependent variable is a rare event, I am running forthlogit regressions. In my sample,…
Subscribe to:
Post Comments (Atom)
0 Response to Extract different parts from one variable
Post a Comment