Re: [R] using lapply to get function values

2014-01-10 Thread David Winsemius
On Jan 10, 2014, at 2:04 AM, Long Vo wrote: Hi R users, I need to apply a function on a list of vectors. This is simple when I use functions that returns only one numerical value such as 'mean' or 'variance'. Things get complex when I use functions returning a list of value, such as 'acf'

[R] using lapply to get function values

2014-01-09 Thread Long Vo
Hi R users, I need to apply a function on a list of vectors. This is simple when I use functions that returns only one numerical value such as 'mean' or 'variance'. Things get complex when I use functions returning a list of value, such as 'acf'. In the following example I first create a list of v