: Thursday, 16 February 2012 1:35 AM
To: Martin Morgan
Cc: r-help@r-project.org
Subject: Re: [R] matching a sequence in a vector?
On 15-02-2012, at 15:27, Martin Morgan wrote:
On 02/14/2012 11:45 PM, Petr Savicky wrote:
On Wed, Feb 15, 2012 at 02:17:35PM +1000, Redding, Matthew wrote:
Hi All
Hi All,
I've been trawling through the documentation and listserv archives on this
topic -- but
as yet have not found a solution. I'm sure this is pretty simple with R, but I
cannot work out how without
resorting to ugly nested loops.
As far as I can tell, grep, match, and %in% are not the
To: Redding, Matthew
Cc: r-help@r-project.org r-help@r-project.org
Sent: Thu Oct 13 18:04:53 2011
Subject: Re: [R] nls: singular convergeance
On 13/10/11 18:02, Redding, Matthew wrote:
Dear R-experts,
I have 28 data points that I would like to fit with a non linear
broken-stick -- with three fitted
regression tool. Can you let me know how it could be used?
Thanks,
Matt Redding
-Original Message-
From: Rolf Turner [mailto:rolf.tur...@xtra.co.nz]
Sent: Thursday, 13 October 2011 6:46 PM
To: Redding, Matthew
Cc: r-help@r-project.org
Subject: Re: [R] nls: singular convergeance
On 13/10
more obvious.
So I guess no amount of tweaking nls will help!
Thanks for your time.
Kind regards,
Matt Redding
-Original Message-
From: Rolf Turner [mailto:rolf.tur...@xtra.co.nz]
Sent: Friday, 14 October 2011 9:10 AM
To: Redding, Matthew
Cc: r-help@r-project.org
Subject: Re: [R
Dear R-experts,
I have 28 data points that I would like to fit with a non linear
broken-stick -- with three fitted parameters.
When I view trace -- and use the final values as lines on the graph of
data -- it looks pretty good.
Q1. Why am I getting singular convergeance?
Q2. Can you suggest
Hi All,
Is there a means to extract the 10 from 23:10:34 in one pass using
strsplit (or something else)?
tst - 23:10:34
For example my attempt
strsplit(as.character(tst),^[0-9]*:)
gives
[[1]]
[1] 34
Obviously it is matching the first two instances of [0-9]. Note that
there may be only
Hi All,
Just to make that question a bit harder - how
do I apply that string extraction to vector of these time strings?
Thanks,
Matt Redding
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Redding, Matthew
Sent: Thursday, 16 October 2008 7:54 AM
Hi R used with C-code experts,
I had a look at the archives and did not find anything on this, so
hopefully I am not doubling up.
I have previously used the following approach where I needed some very
small/large numbers (using Brobdingnag):
surfacewithdiff - function(t, y, p)
{
Hi All R-Gurus,
I am trying to debug a program, and I think tryCatch will help. The functions
involved
process through so many times before I encounter the error, things are a bit
slow to
use debug and browser().
I've read the help file and postings on conditions, and am still having
Hi R-Gurus,
I've been cutting along quite nicely with nlm, until
I threw in the following condition in the function that nlm is
minimising:
if (((term*bexp) 0.0001)) {
#warning(term*bexp, =term*bexp,psi,=psi)
theta-2000
}
Now when I run this function anywhere
Dear R Gurus,
I am having a little difficulty with nlm. I've searched the archives and
found nothing that tells me why this is occuring -- though there are
some slightly similar issues.
A simple example:
lev2-function(aaa,bbb,ccc,ddd,eee){
res-aaa+bbb+ccc+ddd+eee
res
}
Dear R-Gurus,
I have ended up with a calculation problem where I need to use brobs.
I have to work my way through a vector with a for loop to act on each
element in a calculation (refering to the previous
value in the new vector of results -- so as far as I know I can't use
apply) -- this
.
Matt Redding
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Redding, Matthew
Sent: Wednesday, 28 May 2008 10:18 AM
To: r-help@r-project.org
Subject: [R] indexing lists, using brobdingnagian
Dear R-Gurus,
I have ended up with a calculation problem
14 matches
Mail list logo