Re: [R] subset function within a function

2008-07-03 Thread Henrique Dallazuanna
I think that you can use split fot this, see ?split On Thu, Jul 3, 2008 at 6:25 PM, Lana Schaffer <[EMAIL PROTECTED]> wrote: > Hi, > I am using this subset statement and it works > outside a function. > LIS[[i]]<- lapply(LI, subset, select=cov[[i]]) > However, wrapped inside a function this stat

[R] subset function within a function

2008-07-03 Thread Lana Schaffer
Hi, I am using this subset statement and it works outside a function. LIS[[i]]<- lapply(LI, subset, select=cov[[i]]) However, wrapped inside a function this statement produces the same values for every LIS[[1]] which is only the first subset of LI. Does anyone know why is not working correctly ins