[R] function on factors - how best to proceed

2007-09-19 Thread Karin Lagesen
Sorry about this one being long, and I apologise beforehand if there is something obvious here that I have missed. I am new to creating my own functions in R, and I am uncertain of how they work. I have a data set that I have read into a data frame: > gctable[1:5,] refseq geometry X60_origi

Re: [R] function on factors - how best to proceed

2007-09-19 Thread Gustaf Rydevik
On 9/19/07, Karin Lagesen <[EMAIL PROTECTED]> wrote: > "Gustaf Rydevik" <[EMAIL PROTECTED]> writes: > > > > The second warning message tells you that: > > 2: the condition has length > 1 and only the first element will be > > used in: if (terminus > origin) > > > > You are comparing two vectors,

Re: [R] function on factors - how best to proceed

2007-09-19 Thread Gustaf Rydevik
On 9/19/07, Gustaf Rydevik <[EMAIL PROTECTED]> wrote: > On 9/19/07, Karin Lagesen <[EMAIL PROTECTED]> wrote: > > "Gustaf Rydevik" <[EMAIL PROTECTED]> writes: > > > > > > > The second warning message tells you that: > > > 2: the condition has length > 1 and only the first element will be > > > used

Re: [R] function on factors - how best to proceed

2007-09-19 Thread Gustaf Rydevik
On 9/19/07, Karin Lagesen <[EMAIL PROTECTED]> wrote: > > Sorry about this one being long, and I apologise beforehand if there > is something obvious here that I have missed. I am new to creating my > own functions in R, and I am uncertain of how they work. > > I have a data set that I have read int