search for: skim033

Displaying 4 results from an estimated 4 matches for "skim033".

2006 Apr 09
1
help on using 'sum' in writng a function
Hi, I am writing a function that includes 'sum' function such as: f<-function(x){ c<-c(-1,0,1) f<-sum(c+x) } expecting f to be -1+x+0+x+1+x=3x. But I found out that f is sum(x). So, f is always a scalar, which means that f(c(0,1)) is not a vector as c(0,3), but 3(0+1)=3. I would like to ask you helping me in solving this problem. I would like to thank you in advance. Sungsu.
2006 Apr 09
1
using 'sum' function in writing a function
Hi, I am writing a function that includes 'sum' function such as: f<-function(x){ c<-c(-1,0,1) f<-sum(c+x) } expecting f to be -1+x+0+x+1+x=3x. But I found out that f is sum(x). So, f is always a scalar, which means that f(c(0,1)) is not a vector as c(0,3), but 3(0+1)=3. I would like to ask you helping me in solving this problem. I would like to thank you in advance. Sungsu.
2008 Apr 12
2
nonlinear curve fitting on a torus
Dear R users. I have data observed on the surface of a torus, and am trying to fit the nonlinear regression using the geodesic equation on a torus. Could anyone give me a helpful advise on this problem? I would definitely appreicate your reply. Sincerely, SUNGSU KIM [[alternative HTML version deleted]]
2008 Feb 25
1
version 2.5.1 and version 2.3.1
Dear R users. I have written my R code. It runs in the version 2.3.1, but not in the version 2.5.1. The error message is shown below. Error in .Fortran("DEPTH", u, v, as.integer(size), as.single(x), as.single(y), : Fortran symbol name "depth" not in load table Could any one advise me what I could do to run my code in 2.5.1? Sincerely,