Hi!
I have a question about transforming my data table.
I have a table with 3 variables: postal codes (PC4), the number of available jobs (AvailableJobs) and the sectors in which the available jobs can be categorized (Sector). A small example I made in Excel of my data can be seen in the left table.
Now I want to convert/transform this left table to a table like the right table. Instead of a table with all separated observations (left), I want a table in which all available jobs per PC4 are added together and are divided over the mentioned sectors. So in fact the column G is the sum of columns H through N.
Can someone tell me if this is possible? And if so, which comments do I have to use?
Thank you in advance!
Array
Related Posts with Transforming datatable
Bayesian regression analysis with sampling weightHi all Does anyone know if I could do Bayesian regression analysis with sampling weight? I have got …
can we generate 0,1 and missing values simutaneously? Code: gen A = B==0 & C==1 replace A = . if B== .| C==. In other words, can we simplify the two …
cluster on firm or two-way level?Hello all, If the model is y_it = x1_it + x2_it + x3_t + e_it, which means there is a time-serial v…
Obtain new variable after 3 consecutive signals and generate new values after 6 and 8 periodsHi! With the variable buy_signal I've created buy signals. I have the following rule after which I w…
r(1400) after meglmHi together, I tried to use meglm models according to this tutorial: https://stats.idre.ucla.edu/st…
Subscribe to:
Post Comments (Atom)
0 Response to Transforming datatable
Post a Comment