Skip to content
Prev 262934 / 398502 Next

Multiply list objects

Since this example is not reproducible (and you have not quuoted any 
former code) I can only give advice "in principle":

1. Never use 1:length(x) since this will seriously fail if x is a length 
0 object. Instead, use seq_along(x)
2. If k is a list, then you probably want to use doubled brackets in 
k[[year]] for a scalar valued "year".

Uwe Ligges
On 16.06.2011 23:49, mdvaan wrote: