Re: [R] Better way of writing R code

2013-04-06 Thread Katherine Gobin
to you for the same. Thanks once again and sorry for the inconvenience caused by me. Regards Katherine --- On Fri, 5/4/13, Adams, Jean jvad...@usgs.gov wrote: From: Adams, Jean jvad...@usgs.gov Subject: Re: [R] Better way of writing R code To: Katherine Gobin katherine_go...@yahoo.com Cc: R help r

Re: [R] Better way of writing R code

2013-04-05 Thread Adams, Jean
, 3/4/13, Adams, Jean jvad...@usgs.gov* wrote: From: Adams, Jean jvad...@usgs.gov Subject: Re: [R] Better way of writing R code To: Katherine Gobin katherine_go...@yahoo.com Cc: R help r-help@r-project.org Date: Wednesday, 3 April, 2013, 2:08 PM Katherine, You don't need to convert rate_df

Re: [R] Better way of writing R code

2013-04-05 Thread arun
--- On *Wed, 3/4/13, Adams, Jean jvad...@usgs.gov* wrote: From: Adams, Jean jvad...@usgs.gov Subject: Re: [R] Better way of writing R code To: Katherine Gobin katherine_go...@yahoo.com Cc: R help r-help@r-project.org Date: Wednesday, 3 April, 2013, 2:08 PM Katherine, You don't need to convert

Re: [R] Better way of writing R code

2013-04-05 Thread David Winsemius
On Apr 4, 2013, at 6:48 AM, Gabor Grothendieck wrote: On Thu, Apr 4, 2013 at 9:32 AM, Adams, Jean jvad...@usgs.gov wrote: Katherine, You should cc the R-help on all correspondence. The more eyes that see your query, the quicker and probably the better the response will be. Send your

Re: [R] Better way of writing R code

2013-04-04 Thread Adams, Jean
...@usgs.gov Subject: Re: [R] Better way of writing R code To: Katherine Gobin katherine_go...@yahoo.com Cc: R help r-help@r-project.org Date: Wednesday, 3 April, 2013, 2:08 PM Katherine, You don't need to convert rate_df into tabular form. You just need to categorize each row in currency_df

Re: [R] Better way of writing R code

2013-04-04 Thread Gabor Grothendieck
On Thu, Apr 4, 2013 at 9:32 AM, Adams, Jean jvad...@usgs.gov wrote: Katherine, You should cc the R-help on all correspondence. The more eyes that see your query, the quicker and probably the better the response will be. Send your message as plain text with no attachments ... so, include your

Re: [R] Better way of writing R code

2013-04-04 Thread Katherine Gobin
: Gabor Grothendieck ggrothendi...@gmail.com Subject: Re: [R] Better way of writing R code To: Adams, Jean jvad...@usgs.gov Cc: Katherine Gobin katherine_go...@yahoo.com, R help r-help@r-project.org Date: Thursday, 4 April, 2013, 2:48 PM On Thu, Apr 4, 2013 at 9:32 AM, Adams, Jean jvad...@usgs.gov

[R] Better way of writing R code

2013-04-03 Thread Katherine Gobin
Dear R forum, (Pl note this is not a finance problem) I have two data.frames as currency_df = data.frame(current_date = c(3/4/2013, 3/4/2013, 3/4/2013, 3/4/2013), issue_date = c(27/11/2012, 9/12/2012, 14/01/2013, 28/02/2013), maturity_date = c(27/04/2013, 3/5/2013, 14/6/2013, 28/06/2013),

Re: [R] Better way of writing R code

2013-04-03 Thread Adams, Jean
Katherine, You don't need to convert rate_df into tabular form. You just need to categorize each row in currency_df into a tenor. Then you can merge the two data frames (by currency and tenor). For example ... # convert dates to R dates, to calculate the number of days to maturity # I am