0

I have a dataframe which once I split the terms in col (X) the DF becomes un-writable. I am prompted with this error

Error in .External2(C_writetable, x, file, nrow(x), p, rnames, sep,
eol,  :    unimplemented type 'list' in 'EncodeElement'

My originally DF (DF1), which is writable, looks like this

        SentrixPosition     Chormosomal.position
504   4578150569_R01C01   chr2:41238644-41245501
504.1 4578150569_R01C01 chr1:247849473-247925390
504.2 4578150569_R01C01   chr2:17221404-17232378
504.3 4578150569_R01C01     chr5:7177740-7202086
504.4 4578150569_R01C01   chr8:95721435-95744466

after string splitting the column Chormosomal.position in 3 further columns. The file is no longer writable and the error previously mentioned arises. The new DF look like:

           SentrixPosition     Chormosomal.position  chr  startPos    endPos
504   4578150569_R01C01   chr2:41238644-41245501 chr2  41238644  41245501
504.1 4578150569_R01C01 chr1:247849473-247925390 chr1 247849473 247925390
504.2 4578150569_R01C01   chr2:17221404-17232378 chr2  17221404  17232378
504.3 4578150569_R01C01     chr5:7177740-7202086 chr5   7177740   7202086
504.4 4578150569_R01C01   chr8:95721435-95744466 chr8  95721435  95744466
George
  • 903
  • 8
  • 22
  • Could you show the `dput` of the new DF that is showed? or the `str` to check if some of the columns are list – akrun Jan 25 '15 at 21:40
  • I have found a solution. Basically after string splitting my new columns were included as a list rather then as.numeric or as.character. Hence in changing this I was able to write the file. – George Jan 25 '15 at 21:48

0 Answers0