I have some human-readable tab-separated data with the following form:
Table_1
10 20 30
30 40 50
10 20 40
Table_2
20 30 40
10 50 60
30 20 10
30 10 40
Table_3
20 30 50
30 50 40
I would like to preserve the table names as a column, like so:
Table_1 10 20 30
Table_1 30 40 50
Table_1 10 20 40
Table_2 20 30 40
Table_2 10 50 60
Table_2 30 20 10
Table_2 30 10 40
Table_3 20 30 50
Table_3 30 50 40
I could probably hack at this with awk and sed, but I'd prefer to use the tidyr approach.