I have a dataframe where some columns contain levels with spaces. When I call the dataframe and copy paste the result into read.table(text="")
it doesn't work because there is an unequal number of spaces in different rows. So how to do a clean display of the dataframe in the first place so I can copy paste it into read.table specifying the seperator so I can do a reproducible example quickly ? Also how to delete the automatic numerotation (1,2,3,...) ?
> tdat
uL Intensity sample
1 6.0 29355.00 PCAM MCH LOW-atp,E1E2,UbK48
2 4.0 36034.00 PCAM MCH LOW-atp,E1E2,UbK48
3 2.0 42571.00 PCAM MCH LOW-atp,E1E2,UbK48
4 1.0 62325.00 PCAM MCH LOW-atp,E1E2,UbK48
5 0.5 79505.00 PCAM MCH LOW-atp,E1E2,UbK48
6 25.0 25190.00 MCH Mild
7 20.0 19721.50 MCH Mild
In this dataframe I have 3 columns, I would like R to display a separator between each column so I can use read.table easily.