Entering edit mode
20 months ago
sata72
•
0
I have a column of data (label) as see below and I want to separate in to some separate columns, this is an example of data. I want to separate column "label" to "treat" "sex" "line" and "id"? Can anyone help?
Thanks
label treat sex line id
sample10trf100 tr f 100 10
sample11trf100 tr f 100 11
sample12trf100 tr f 100 12
sample13trm104 tr m 104 13
sample14trf104 tr f 104 14
sample15ctf104 ct f 104 15
sample16ctf120 ct f 120 16
sample17ctm120 ct m 120 17
sample18ctf120 ct f 120 18
sample19ctm100 ct m 100 19
sample20ctf104 ct f 104 20
Great! is it possible i have a label column along side generated columns in output?
Yes, set the
col.names
argument, edited the post.