Skip to content
Prev 301313 / 398506 Next

loop for, error: obj type 'closure' not subsetable

Hello,

Simple, look carefully at what you have, rho is a function (type 
closure), the vector is rhoes.
And you are trying to print rho[i], the i-th function in the "vector" 
called rho.

print( rhoes[i] )  # works

Hope this helps,

Rui Barradas

Em 26-07-2012 06:40, Rafael_Leon escreveu: