Displaying 20 results from an estimated 200 matches similar to: "Odp: Currency return calculations"
2011 Jan 07
1
Currency return calculations
Dear sir, I am extremely sorry for messing up the logic
asking for help w.r.t. my earlier mails
I have tried to explain below what I am looking for.
I have a database (say, currency_rates) storing datewise
currency exchange rates with some base currency XYZ.
currency_rates <- data.frame(date =
c("12/31/2010", "12/30/2010", "12/29/2010",
2011 Jan 07
1
Calculating Returns : (Extremely sorry for earlier incomplete mail)
Dear R forum helpers,
I am extremely sorry for the receipt of my incomplete mail yesterday. There was connectivity problem at my end and so I chose to send the mail through my cell, only to realize today about the way mail has been transmitted. I am again sending my complete mail through regular channel and sincerely apologize for the inconvenience caused.
## Here is my actual mail
Dear R
2012 Mar 15
2
Integrate inside function
Dear R users,
first I take this opportunity to greet all the R community for your
continuous efforts.
I wrote a function to calculate the pdf and cdf of a custom distribution
(mixed gamma model).
The function is the following:
pmixedgamma3 <- function(y, shape1, rate1, shape2, rate2, prev)
{
density.function<-function(x)
{
shape1=shape1
rate1=rate1
shape2=shape2
2009 Dec 26
1
Reading Input file
Dear R helpers
I have some files in my say 'WORK' directory and the file names are say rate1.csv, rate2.csv, rate3.csv, rate4.csv
Because of some other requirement, I need to run the following commands
n = 4
rates = NULL
for (i in 1:n)
rates[i] = (paste(`rate', i, ‘.csv`, sep = ‘’))
# this gives me "rate1.csv" "rate2.csv" and so on
#My problem is
2006 Jan 04
3
TC/CBQ shaping problems
Hello everyone,
I''m a newbie experimenting with CBQ shaping and am facing a few problems.
Can any of you please help?
TEST SETUP:
+---------------+ +----------------+
| 10.0.0.103 |----------->| 10.0.0.102 |
+---------------+ +----------------+
10.0.0.103: Linux, 100Mbit/s NIC
10.0.0.102: Windows, 100Mbit/s NIC, iperf tcp server (ports 2000 and 2001)
WHAT I
2009 Dec 28
2
Modified R Code
Dear R helpers,
I have following input files. (Actually they are more than 10 rates but here i am considering only 2 rates to write my problem)
rate1.csv
min1 max1 min2 max2 min3 max3
1.05 1.30 1.30 1.65 1.65 1.99
rate2.csv
min1 max1 min2 max2 min3
2000 Nov 09
2
simple mixture
Dear All,
I am trying to do some simple mixture analyses. For instance, I have a
sample of n observations and I suspect they come from two different
exponential distributions with parameters rate1 and rate2, respectively.
So, I want to estimate rate1, rate2, and the proportions of both kinds of
individuals in the sample. I had a look at the packages mda and mclust, but
they do not seem to do this
2003 Aug 18
1
Remarking non conformant packets as AF13 from AF11
Hi,
I am trying to implement a simple scaled-down version of the AF traffic
class type. As such I basically want to remark non-conforming AF11
packets to AF13. Here is m script that I have been using on the ingress
router of my network:
----------------------------------------
Link=''dev eth1''
Rate1=''rate 800Kbit''
Rate2=''rate 2500Kbit''
2009 Jul 28
1
Sort a dataframe on the column Date
Dear Users
I have a dataframe called mydata4 of the following order with the first
column as a date and the rest of the columns are numeric with rate.
Column 1 Rate1 : Rate 20
(PxMid)
01/01/2003
07/01/2001
----
----
--
I wish to sort this dataframe on the first col in ascending order.
I tried to do the following
mydata4<-mydata4[,order(mydata4$PxMid)]
This give an error.
Please help.
2006 Jun 18
13
Currency calculation
I''m thinking of experimenting with some currency conversion. However,
I''d like the conversions to be in synch with the current rates.
Anyone know (and this maybe out in left field) if there is some online
(perhaps xml) or other data stream I can connect with in my code to
output values based on user selection ?
TIA
Stuart
2007 May 31
0
Merging two data objects question
I have two R objects, allDataSubset1 and allDataSubset2 and the str of
both of them is shown below ( I don't show all 18 lists for
space purposes ). The difference between them is that the times ( and
possibly the days ) and the data is different and what I want to do is
merge them so that only the data in Subset2 that is the same day and
times as Subset 1 remains in the merged dataset.
2010 Dec 11
0
is there a packge or code to generate markov chains in R
Hi,
if i have data in the following time series format:
time, amount, state
1 2222 A
1 333 B
2 45 A
2 77 B
where states could be n and time periods t is there a package in R that would calculate the transition probabilities in a markov chain.
for each t except t=0 to generate
A B
A
B
perhaps the best structure might
2007 May 23
1
I made some progress on my previous "systemfit" question but still not quite there
Surprisingly, I played around with some test code and below actually
creates equations that look correct.
tempmat<-matrix(10,nrow=6,ncol=6)
restrictmat<-diag(6)
colnames(tempmat)<-c("AUD.l1","CHF.l1","CAD.l1","GBP.l1","EUR.l1","JPY.l
1")
2012 Apr 27
1
multivariate xts merge question
Hi,
I have an xts starting with a number of columns (currency pairs see below),
then I add new ones which are derived from existing ones (like adding the
moving average of a column) by merging the new columns one by one. These
get the name of the column they are calculated from concatenated with ".1".
All done by merge.xts, easy.
Now, I have a function (procState below) which generates
2004 Jul 09
3
tc filter + bridging + htb -- works only if ip_forward = 0
I thought that the below email would be of interest to LARTC readers. I
wasted quite a bit of time tracking down this "feature" (bug?). Any
comments that shed light on this would be appreciated. In short, "tc
filter" + htb + bridging works only with ip_forward off.
Andrew Athan
-----------------------------------------------------------------------
All:
It seems that
2011 Jan 06
1
Calcuting returns
Dear R forum helpers,I have following datatrans <- data.frame(currency_transacted = c("EURO", "USD", "USD", "GBP", "USD", "AUD"), position_amt = c(10000, 25000, 20000, 15000, 22000, 30000))date <- c("12/31/2010", "12/30/2010", "12/29/2010", "12/28/2010", "12/27/2010",
2006 Mar 25
4
Rails PayPal and Currencies other than USD
Has anyone been able to make direct API calls to PayPal in currencies
other than USD? I get an error message "The currency code submitted is
not supported. Check the currency code and try again."
I''m using the PayPal plugin for Rails. I can successfully transact in
USD, but not AUD (Australian Dollars).
Cheers,
Dan
2006 Aug 03
2
Convert currency into number
1) A user enters $100 into a textfield and submits, I need to strip off
the $ sign before it gets saved to the db.
2) The name of the field is "price", why does params[:price] upon
submitting have nil value?
--
Posted via http://www.ruby-forum.com/.
2011 Jun 09
0
Where can I download MetaTrader 4 for currency trading?
Is there a cost involved? I already have a brokerage, but can't get MetaTrader 4 through them. Do I need to be trading through a particular broker or other entity in order to get MetaTrader 4, or can I just download an independent version to my computer?
Metatrader 4 Download (http://www.hfx.com/en-US/Trading%20Tools)
Fx Solutions (http://www.hfx.com/en-US/Trading%20Tools)
2009 Sep 24
1
Downloading currency data from from Yahoo
Hi,
I wanted to download some currency data using "quantmod" package, however
got following error :
> getSymbols('USD/GBP',src='yahoo')
Error in download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m,
:
cannot open URL