Re: [R] problem in reading a sequence file

2011-07-05 Thread Ulrich Staudinger
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 cos

Re: [R] problem in reading a sequence file

2011-07-05 Thread Philipp Pagel
On Tue, Jul 05, 2011 at 04:53:32PM +0200, albert coster wrote: I'm taking this back to the list so others can follow up. > Yes, the file is consists of one string (sequence) per line. > > The files format is following: > > Sequence > NNATTAAAGGGC OK - in that case (and as you want a

Re: [R] problem in reading a sequence file

2011-07-05 Thread Berend Hasselman
albert coster wrote: > > 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 readTa

Re: [R] problem in reading a sequence file

2011-07-05 Thread Philipp Pagel
On Tue, Jul 05, 2011 at 02:06:02PM +0200, albert coster wrote: > seqfile > V1 > 1 NNATTAAAGGGC > > I want only NNATTAAAGGGC . If I understand correctly, your file simply contains one string (sequence) per line. In that case you may want to use scan() instead

Re: [R] problem in reading a sequence file

2011-07-05 Thread albert coster
seqfile V1 1 NNATTAAAGGGC I want only NNATTAAAGGGC . Thanks Albert On Tue, Jul 5, 2011 at 1:58 PM, Ben Bolker wrote: > albert coster gmail.com> writes: > > > > > Dear all, > > > > I have a file with some sequence (seq.txt). I am writting following code

Re: [R] problem in reading a sequence file

2011-07-05 Thread Ben Bolker
albert coster 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 b