This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How can I split multiple columns into multiple columns in r

Hello everyone!

I want to split a column into multiple column like below column1 0001 0011 0111 1111

column2 1111 0111 0011 0111 I have this type of data with thousands of column, i want to split each column into 4 single column. i tried to use colsplit function in reshape. library(reshape): colsplit(x, split="", "y")# x data frame it worked for a single column but not for multiple column, even if i use the for loop. Any one please, any help is appreciated! Meki

r

Hello mshehabu!

We believe that this post does not fit the main topic of this site.

Not a bioinformatics question.

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

I too need such help to split the following genotypes: V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 2000000011238 BB BB AA AA AB AB AB AB AB AB 2000000011278 BB AB AA AB AA AA AB AB AB AB 1000000011471 BB AA AA AA AA AA BB AA BB AA 1000000011240 BB AB AB AB AB AB AB AA BB AB 1000000011282 BB AB AA AA AA AA BB AA BB AA 2000000011226 BB AB AA AA AB AB AB AB AB AB 1000000011242 BB AB AA AA AB AB AB AB AB AB 1000000011284 BB BB AA AA AB AB AB AB AB AB 2000000011228 BB BB AA AA AB AB AB AB AB AB 2000000011244 BB AB AA AB AA AA AB AB AB AB 2000000011286 BB AB AB AB AB AB AB AB AB AB 1000000011230 BB AB AB AB AB AB AB AB AB AB 1000000011246 BB AB AB AB AA AA BB AA BB AA 2000000011288 BB AB AA AA AA AA BB AA BB AA 2000000011461 BB AB AA AA AA AA BB AA BB AA 2000000011232 BB BB AA AA AB AB AB AB AB AB

0 answers

No answers yet.

Log in to answer this question.