I have a dataset where each line informs the proportion of public beds em relation to all beds of a hospital (names below cnes) and bed specialization (named below tplei), (ex: delivery, chirurgical, ...). This proportion is named pleisus and is calculated as public beds (named qtleisus) divided by total beds (named ttlei).
I would like to have them informed as columns instead of lines, por each hospital. So, I would like each line to correspond to a hospital and I would like to have as many columns as bed specialization, informing the proportion of public beds for a given specialization. How could I do so?
I would like to have them informed as columns instead of lines, por each hospital. So, I would like each line to correspond to a hospital and I would like to have as many columns as bed specialization, informing the proportion of public beds for a given specialization. How could I do so?
:
cnes tplei qtleisus qtleipriv ttlei pleisus period 27 10 9 0 9 1 200510 27 43 3 0 3 1 200510 35 10 10 0 10 1 200510 35 43 5 0 5 1 200510 94 10 14 0 14 1 200510 94 43 2 0 2 1 200510 183 10 7 0 7 1 200510 221 10 6 4 10 .6 200510 221 43 2 0 2 1 200510 396 10 14 0 14 1 200510 396 43 20 0 20 1 200510 418 10 61 0 61 1 200510 418 43 17 0 17 1 200510 434 10 53 0 53 1 200510 434 43 28 0 28 1 200510 671 10 34 0 34 1 200510 701 43 30 0 30 1 200510