Off topic:How can I split multiple columns into multiple columns in r
0
0
Entering edit mode
7.6 years ago
mshehabu • 0

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 • 2.0k views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 1964 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6