I am working on data frame which has information like this.
df<- as.data.frame(read.table("headen.bed",header = FALSE, sep="\t",stringsAsFactors=FALSE, quote=""))
C1  C2    C3 
33  12249  0,300,3900,400,4500,400,4200
83  9213   0,49,66,75,158,160,170,183,218
146 680    0,3,13,129,274,278,383,481,482,496
I want to do addition of C1 into each element of C3, it would be something like.
C1  C2    C3 
33  12249  33,333,3933,433,4533,433,433
83  9213   83 132 149 158 241 243 253 266 301
146 680    146 149 159 275 420 424 529 627 628 642
but somehow its showing that the C3 is a character class, I tried. different ways to convert into numeric type using  as.numeric type.convert, character to factor and then numeric
. But still didn't can anyone suggest best way to perform this?
 
    