[R] could not find function lapply-

2009-12-08 Thread Luis Ridao Cruz
R-help, I have a list whose elements are data frames. I want to change the colnames attribute in each element of this list but an error message comes up: lapply(LD_strataNew,function(x) dimnames(x)[[2]][-1]) - as.roman(1:9)[-6] Error in lapply(LD_strataNew, function(x) dimnames(x)[[2]][-1]) -

Re: [R] could not find function lapply-

2009-12-08 Thread Henrique Dallazuanna
You can try this instead: lapply(LD_strataNew, 'colnames-', as.character(as.roman(1:9)[-6])) On Tue, Dec 8, 2009 at 9:38 AM, Luis Ridao Cruz lu...@hav.fo wrote: R-help, I have a list whose elements are data frames. I want to change the colnames attribute in each element of this list but an

Re: [R] could not find function lapply-

2009-12-08 Thread Gray Calhoun
Hi Luis, You can't assign to lapply. --Gray On Tue, Dec 8, 2009 at 5:38 AM, Luis Ridao Cruz lu...@hav.fo wrote: R-help, I have a list whose elements are data frames. I want to change the colnames attribute in each element of this list but an error message comes up: