[R] problem in reading a sequence file

Ulrich Staudinger ustaudinger at gmail.com
Tue Jul 5 20:13:50 CEST 2011


Albert,

the output you show contains a column header, v1, and a row index, 1.
In order to access this information, you can for example use x[1,1].
read.table reads a table and thus expects rows and columns.

kind regards,
Ulrich


--
comnect on xing or linkedin

On 05.07.2011, at 14:07, albert coster <albertcoster2010 at gmail.com> wrote:

> seqfile
>                    V1
> 1 NNNNNNNNNNATTAAAGGGC
>
> I want only  NNNNNNNNNNATTAAAGGGC .
>
>
> Thanks
>
> Albert
>
> On Tue, Jul 5, 2011 at 1:58 PM, Ben Bolker <bbolker at gmail.com> wrote:
>
>> albert coster <albertcoster2010 <at> gmail.com> writes:
>>
>>>
>>> Dear all,
>>>
>>> I have a file with some sequence (seq.txt). I am writting following code
>> and
>>> getting error! Can please help me?
>>>
>>> seqfile<-read.table(file="seq.txt")
>>> Warning message:
>>> In read.table(file = "seq.txt") :
>>>  incomplete final line found by readTableHeader on 'seq.txt'
>>>
>>> Thanks in advance
>>>
>>> Albert
>>
>>   Very hard to say without more details.  Please provide a
>> reproducible example, or at least more information.
>>  That is not an error, it's a warning: it means there *might* be
>> something wrong with your data file, but not necessarily.  Have you
>> inspected the results?  Are they what you expected?  If not, do they
>> give you some more information about what might be wrong?
>> Usual suspects: check for unterminated/single quotation marks in
>> your file.
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>    [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list