I have a vector if ID's which i need to split into sub fields. The length of the subfields are constant which I hope will make things straightforward. Currently the ID field looks like this:
ID
0100001000
0100002000
0100003000
0100004000
0100005000
0100006000
0100007000
0100008000
0100009000
0100010000
and I need to split it into sub ID fields like so:
06  00546   000
12  00387   000
21  02437   000
01  06419   000
17  03892   000
17  00010   000
13  02199   000
17  00706   000
05  03358   000
05  03892   000
These values are just examples of format, not content ie the example above just shows that i need to take a string of xxxxxxxxxx and turn it into xx xxxxx xxx please ignore the values.
I'm looking for a solution I can implement in R and I have the feeling I need to be using regular expressions for this but need a nudge in the right direction.
 
     
    