Re: [R] correct function formation in R

2012-11-20 Thread Duncan Murdoch
On 20/11/2012 12:39 PM, Omphalodes Verna wrote: Dear list! I have question of 'correct function formation'. Which function (fun1 or fun2; see below) is written more correctly? Using ''structure'' as output or creating empty ''data.frame'' and then transform it as output? (fun1 and fun1 is just

Re: [R] correct function formation in R

2012-11-20 Thread Rui Barradas
Hello, I believe it's a matter of personal taste. I find fun2 more readable, others may not agree. Rui Barradas Em 20-11-2012 17:39, Omphalodes Verna escreveu: Dear list! I have question of 'correct function formation'. Which function (fun1 or fun2; see below) is written more correctly? Us