'object not found' - when running `get` function within R foreach dopar

1k Views Asked by At

I have a vector called tKKrs, which is a list of stock tickers. Text strings in this vector also represent names of xts objects. All of the objects are already available in the environment. So is the vector tKKrs

If I want to see the content of an object A (which is the first text string in vector tKKrs), I can either type A or get(tKKrs[1])

However if I run get(tKKrs[i]) inside dopar foreach loop, I get error object A not found.

How to make function get work within foreach dopar?

0

There are 0 best solutions below