Try this:
do.call(cbind, lapply(a[2:ncol(a)], function(x)do.call(rbind,
strsplit(as.character(x), ''
On Wed, Jun 3, 2009 at 10:39 AM, Duijvesteijn, Naomi <
naomi.duijveste...@ipg.nl> wrote:
>
> Hi,
>
>
> I am trying to split multiple columns. One column works just fine, but I
> want to
Hi,
I am trying to split multiple columns. One column works just fine, but I
want to do it for multiple columnsâ¦
Example
> a
ID V2 V3 V4 V5 V6 V7 V8 V9 V10
1 PBBA0644 -- GG AA -- AA -- AA GG GG
2 PBBA1010 -- GG AA -- AA -- AA GG GG
3 0127ATPR -- GG AA -- AA
2 matches
Mail list logo