[R] y needing more than 2 functions

2012-03-26 Thread Aimee Jones
Dear all, I'm aware if y has two separate functions (depending on the conditions of x) you can use the ifelse function to separate y into two separate functions depending on input. How do you do this if there a multiple different conditions for x? for example, y fits the following between t0

[R] Trouble with strwrap function

2012-03-04 Thread Aimee Jones
as gibberish in the graphical output. What can I do to make sure the subtitle posts in consecutive lines (without using /n )? thank you for your assistance, Aimee Jones par(mfrow=c(1,1)) plot(out_rk4$time, out_rk4$N2, col=blue, type=l, lwd=3, cex.lab=0.75, xlim=c(0,3650), ylim=c(0,5000),xlab=Time

[R] Adding a migration element to a deterministic spatial model

2012-01-08 Thread Aimee Jones
Hi all, I've been working with a friend's model that is a spatial model consisting of 4 patches. She uses the code found below to add migration between the patches for the three species of concern. When I run a script incorporating this code, all four patches run independently without migration

[R] How does once import a function from an imported script?

2011-11-09 Thread Aimee Jones
the workspace returns, I get function(T1,t) (parms[B1]) I am trying to get B1 to return as function(T1,t) {2*dnorm(T1(t),mean=32.5,sd=7)}, so that I can plot B1(T1,t). Is there any way to do this? Thank you for your assistance and patience, yours sincerely, Aimee Jones

Re: [R] Plotting compound functions--help with defining x-axis as f(x)

2011-07-24 Thread Aimee Jones
you for any further help, Aimee 2011/7/24 Uwe Ligges lig...@statistik.tu-dortmund.de On 23.07.2011 00:50, Aimee Jones wrote: Hi all, I'm having trouble locating a script that will allow to me to create graphs that show compound functions as a function of the simple function, rather than just

[R] Plotting compound functions--help with defining x-axis as f(x)

2011-07-23 Thread Aimee Jones
Hi all, I'm having trouble locating a script that will allow to me to create graphs that show compound functions as a function of the simple function, rather than just x (or time as it is in my case). Currently I have the following functions defined in my script: T1-function(t)

Re: [R] Trouble with compound functions---differential equations

2011-06-16 Thread Aimee Jones
Hey, Thank you for your swift responses, both options work great. Aimee On Wed, Jun 15, 2011 at 11:30 PM, Rolf Turner rolf.tur...@xtra.co.nzwrote: On 16/06/11 11:07, Aimee Jones wrote: Hi all, My apologies if this message is incredibly inept but I am very new to both computer programming

[R] Trouble with compound functions---differential equations

2011-06-15 Thread Aimee Jones
Hi all, My apologies if this message is incredibly inept but I am very new to both computer programming and to R. I am working with the odesolve add-on and have the following function defined RVF_Single - function(t, x, p) within the script I also have the following functions defined: