You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose we would prefer s to define the names here. We can arrange for that by adding a setNames to the end of the pipeline but the problem with that is that it uses s twice and that is bad form. A pipeline should have a single input on the very left hand side.
but it required more thought than I had expected to get to this.
A related problem is that we might want to specify our own names for the tickers and it would be nice if getSymbols used the names on tickers if it were named. In the code below the output would be c("sp500", "ssec")
Thanks for the report and suggestion! Providing names on the tickers vector is one of the options I thought of for rfimport. I'd appreciate your thoughts on any of the design ideas in that readme.
Consider this code giving the ugly names on
stocks
.Suppose we would prefer
s
to define the names here. We can arrange for that by adding asetNames
to the end of the pipeline but the problem with that is that it usess
twice and that is bad form. A pipeline should have a single input on the very left hand side.This can be addressed by defining
mergeList
as follows:but it required more thought than I had expected to get to this.
A related problem is that we might want to specify our own names for the tickers and it would be nice if
getSymbols
used the names ontickers
if it were named. In the code below the output would bec("sp500", "ssec")
The text was updated successfully, but these errors were encountered: