Hi,
I have the following commands. It says line 5205 does not have 22
elements. But I use my 'vim' checked that line in the file. It has 22
fields. Can somebody let me know how to further debug this case?
Regards,
Peng
annotation = read.table(../EC_results/Juan_15wks_gene_core.xls, header=T,
On Mon, Sep 21, 2009 at 9:12 PM, Peng Yu pengyu...@gmail.com wrote:
Hi,
I have the following commands. It says line 5205 does not have 22
elements. But I use my 'vim' checked that line in the file. It has 22
fields. Can somebody let me know how to further debug this case?
Regards,
Peng
Its highly unusual to use xls as the extension for a text file.
Use something more suggestive.
print out the line in question. For example, note that scan
and read.table have different defaults for the comment character,
namely, none and #.
On Mon, Sep 21, 2009 at 10:23 PM, Peng Yu
Here are the outputs.
strsplit(scanned_file[5205],'\t')[[1]]
[1] 6836237
[2] 8.146431
[3] 8.197432
[4] 8.156005
[5] 7.98905
[6] 8.327593
[7] 7.673796
[8] 8.119687
[9] 8.077252
[10] Asap1
[11] NM_010026
[12] RefSeq
[13] Mus musculus ArfGAP with SH# domain, ankyrin repeat and PH
It has a # in it as I previously suggested.
On Mon, Sep 21, 2009 at 11:08 PM, Peng Yu pengyu...@gmail.com wrote:
Here are the outputs.
strsplit(scanned_file[5205],'\t')[[1]]
[1] 6836237
[2] 8.146431
[3] 8.197432
[4] 8.156005
[5] 7.98905
[6] 8.327593
[7] 7.673796
[8] 8.119687
Read Gabor's advice more closely: Especially unlucky # (hint, hint)
13.
On Sep 21, 2009, at 11:08 PM, Peng Yu wrote:
Here are the outputs.
strsplit(scanned_file[5205],'\t')[[1]]
[1] 6836237
[2] 8.146431
[3] 8.197432
[4] 8.156005
[5] 7.98905
[6] 8.327593
[7] 7.673796
[8] 8.119687
[9]
6 matches
Mail list logo