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:

T1<-function(t) {T1<-27.5-12.5*cos(2*pi*t/365)}
and

B1<-function(T1,t) {B1<-dnorm(T1(t),mean=22.5,sd=3.3)}



When the script is run it doesn't return an error message but the graphs
returned are "wrong". When I input "plot(T1,0,3650)" it returns the plot of
T1 as expected---a series of waves between 15 and 40, BUT when I input
"plot(B1,0,3650)" I get an error message of "Error in 2 * pi * t : 't' is
missing".




Can anyone advise as to why t registers for function T1 but disappears for
function B1?


Thank you,


Aimee

ps: If it's relevant I'm using R64 (R 2.11.1) on a Mac

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to