search for: dongfeng

Displaying 9 results from an estimated 9 matches for "dongfeng".

2004 Feb 24
6
be careful: using attach in R functions
...hree=0.4) attach(theta) x <- c(one, two, three) sample(x, 1) } test <- function(n=400){ timeu <- numeric(n) for(i in seq(n)){ timeu[i] <- system.time({ resi <- f() })[3] } plot(timeu) } test() ############################## ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Li Dongfeng ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ldf-nospacm at math.pku.edu.cn ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2004-02-24
2001 Jul 16
1
polyroot() (PR#751)
In a bug report from Nov.28 2000, Li Dongfeng writes: ----- I have found that the polyroot() function in R-1.1.1(both solaris and Win32 version) gives totally incorrect result. Here is the offending code: # Polyroot bug report: # from R-1.1.1 > sort(abs(polyroot(c(1,-2,1,0,0,0,0,0,0,0,0,0,-2,5,-2,0,0,0,0,0,0,0,0,0,1,-2)))) [1] 0.8758259...
1999 Sep 09
1
read.table bug
...ntaining: "Smith, John", 120, 90 "Thomson, Peter", 110, 85 there are 3 variables in it. If we use x <- read.table("tmp.txt", sep=",") to read the data to a data.frame, the result will be 4 columns. Splus 4.0 have no problem with this kind of data. Li Dongfeng -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat....
1999 Sep 09
1
read.table bug
...ntaining: "Smith, John", 120, 90 "Thomson, Peter", 110, 85 there are 3 variables in it. If we use x <- read.table("tmp.txt", sep=",") to read the data to a data.frame, the result will be 4 columns. Splus 4.0 have no problem with this kind of data. Li Dongfeng -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat....
2007 Feb 14
1
lattice graphics and source()
...;- x^2 xyplot(y ~ x) } f() Then I run the program: > source("myprog.r") but nothing happens. Manully run f() at the command line: > f() then the figure is shown. This seems to be a bug only associated with lattice graphics, the old style plots do not exibit these behavior. Dongfeng Li
2000 Aug 23
1
png device on Solaris
...got this error. Error in png() : No png support in this version of R Can anyone tell me how to compile png support on solaris/unix? The new bitmap() device already does what I need but it requires ghostscript program installed. Please respond to my email in addition to the list. Thanks. Li Dongfeng ldf at statms.stat.pku.edu.cn Dept Statistics http://statms.stat.pku.edu.cn/~ldf Peking University -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", &qu...
1999 Sep 06
0
suggestion: postscript paper=user
...ect(we need landscape). I don't know how to make the image size smaller and rotating 90 degrees with ghostscript. I had to patch the R source(src/unix/devPS.c) myself to add a paper size. If R provide a paper="user " option for the postscript device, things would be much easier. Li Dongfeng -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat...
1999 Sep 06
0
suggestion: postscript paper=user
...ect(we need landscape). I don't know how to make the image size smaller and rotating 90 degrees with ghostscript. I had to patch the R source(src/unix/devPS.c) myself to add a paper size. If R provide a paper="user " option for the postscript device, things would be much easier. Li Dongfeng -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat...
1999 Sep 16
1
Java/C interface with R
Hi, I'm rarther curious if it is possible to interface C or Java GUIs with the underlying R statistical engine. SPLUS has something like this in S+SDK. Lionel -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in