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, which generate a

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 into a