Displaying 1 result from an estimated 1 matches for "currency_tran".
Did you mean:
currency_trans
2011 Jan 07
1
Calculating Returns : (Extremely sorry for earlier incomplete mail)
...date <- currency$date
#USD = currency$USD
#GBP = currency$GBP
#EURO = currency$EURO
#CHF = currency$CHF
#AUD = currency$AUD
# _________________________________________________________
# CREATION of Function. I am using function as no of transactions is not constant.
spot_trans = function(currency_trans)
{
if (currency_trans == "USD")
{rate = USD}
# So if I am dealing with TRANSACTION "USD", I am selecting the USD exchange rates.
if (currency_trans == "GBP")
{rate = GBP}
if (currency_trans == "EURO")
{rate = EURO}
if (currency_trans == "...