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]) -
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
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:
3 matches
Mail list logo