I have a set of data that has laboratory test type as row names and date as column name. I would like to transform this table so that every value in the name has a laboratory test and a date. For example:
2017-01-01 2017-01-15
calcium 80 91
glucose 67 69
Neutrophils 3500 3812
Platlets 391653 370108
Lymphocytes 1839 2008
I would like to transform this table to the following:
calcium 2017-01-01 80
glucose 2017-01-01 67
neutrophils 2017-01-01 3500
platlets 2017-01-01 391653
lymphocytes 2017-01-01 1839
calcium 2017-01-15 91
glucose 2017-01-15 69
neutrophils 2017-01-15 3812
platlets 2017-01-15 370108
lymphocytes 2017-01-15 2008
There are over 100 dates and over 50 tests, so this would take too long to do by hand. Does anyone know a function or a tool online that can do this?