# NOT RUN {
# }
# NOT RUN {
#First create instruments
currency(c('USD','CAD','GBP')
stock(c('CM','CNQ'),'CAD')
stock(c('BET','BARC'),'GBP')
stock(c('SPY','DIA'),'USD')
#now the examples
ls_by_currency(c('CAD','GBP'))
ls_USD()
ls_CAD()
#2 ways to remove all instruments of a currency
rm_instruments(ls_USD())
#rm_instruments(ls_GBP(),keep.currencies=FALSE)
rm_by_currency( ,'CAD')
#rm_by_currency( ,'CAD', keep.currencies=FALSE)
# }
Run the code above in your browser using DataLab