search for: anexpression

Displaying 2 results from an estimated 2 matches for "anexpression".

Did you mean: gvnexpression
2007 May 18
2
Execute expression ( R -e) without close
I need to find a way how to execute an expression with the new command line parameter in R (R -e "AnExpression") without R get closed after the expression has been evaluated. For example if i want to start R with a plot or start R with a *.RData file. Any help or suggestions are appreciated ! -- View this message in context: http://www.nabble.com/Execute-expression-%28-R--e%29-without-close-tf3777652...
2005 Feb 15
1
matlab norm(h) command in R: sqrt(sum(h^2)) - use in an expression
Hi in matlab I defined a function (double gamma, parameters at the end of this mail) as h(i)=((t/d1)^a1)*exp(-(t-d1)/b1)-c*((t/d2)^a2)*exp(-(t-d2)/b2); h=h/norm(h); I do know that norm() in matlab is equal to: sqrt(sum(x^2)) in R so in R I do it like: #function (double gamama) h <- expression((t/d1)^a1*exp(-(t-d1)/b1)-c*(t/d2)^a2*exp(-(t-d2)/b2)) # plot it t <- seq(0, 20000,