[Rd] About R variable references

2005-08-16 Thread Markku Mielityinen
Hello Group, I could use an advice on how SEXP handles work. My aim is to implement a system where I initially set a few global variables that are used for communication between C and R code. Then I do some work with R code and periodically call a function of my own that will update the system sta

[Rd] adelaide

2005-08-16 Thread ignacio gerundo
shanel http://uk.geocities.com/Clemente_Addison/?EM8=This_is_a.good_chance.for.you _t __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] bug? (PR#8074)

2005-08-16 Thread Thomas Lumley
On Tue, 16 Aug 2005, Paul Mosquin wrote: > I guess that I expect R to act pretty much as C or C++ would do if I were to > program the same code. It's a bit of a surprise that assignment of > rationals, well within precision, followed by multiplication leading to a > result well within precision

Re: [Rd] bug? (PR#8074)

2005-08-16 Thread berwin
G'day Paul, > "PM" == Paul Mosquin <[EMAIL PROTECTED]> writes: PM> Thomas, Thank you for your response. I checked the FAQ and it PM> provides an example using sqrt(2) where you'd expect numerical PM> precision to be an issue. You should expect numerical precision issues in all ca

Re: [Rd] bug? (PR#8074)

2005-08-16 Thread Paul Mosquin
Thomas, Thank you for your response. I checked the FAQ and it provides an example using sqrt(2) where you'd expect numerical precision to be an issue. I guess that I expect R to act pretty much as C or C++ would do if I were to program the same code. It's a bit of a surprise that assignment o

Re: [Rd] bug? (PR#8074)

2005-08-16 Thread Thomas Lumley
On Wed, 17 Aug 2005 [EMAIL PROTECTED] wrote: > I just don't understand this: > >> (2*2)==4 > [1] TRUE >> .2*.2 > [1] 0.04 >> (.2*.2)==.04 > [1] FALSE It's a FAQ, not a bug. Consider: > (.2*.2) - .04 [1] 6.938894e-18 and read the FAQ -thomas > or > >> x=.04 >> x > [1] 0.04 >> y=.2*.2 >

[Rd] MacOS specific framework install problem

2005-08-16 Thread Cyrus Harmon
Dear r-devel, Using the latest R-devel from SVN, when doing a make install, even from a build directory, there is a recursive copy that attempts to copy the .svn file to the framework include directory. The problem is due to the fact that there is a reference to $srcdir in Makefile.in tha

[Rd] bug? (PR#8074)

2005-08-16 Thread pmosquin
Full_Name: Paul Mosquin Version: 2.1.1 OS: Windows XP Submission from: (NULL) (24.225.66.48) I just don't understand this: >(2*2)==4 [1] TRUE > .2*.2 [1] 0.04 > (.2*.2)==.04 [1] FALSE or > x=.04 > x [1] 0.04 > y=.2*.2 > y [1] 0.04 > y==x [1] FALSE _

[Rd] small typo in "An Introduction to R"

2005-08-16 Thread apjaworski
Hi, I am not sure if this is the right place to report a small typo in one of the manuals. It is not really a bug, is it?. In any case, at the end of section 11.6.2 (the glm() function) in the Quasi-likelihhod models subsection there is an example of using the glm procedure to fit a particular n

[Rd] pch=NA in bxp.Rd (PR#8073)

2005-08-16 Thread arnima
I'd like to iterate my earlier request (#7737) to change the documentation for bxp(). The argument outpch=" " needs to be replaced with outpch=NA in two places. I actually wrote this part of the documentation myself at one point, but have now realized that pch=NA and pch=" " are not the same:

Re: [Rd] quirky behavior from rbinom (PR#8071)

2005-08-16 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: > Full_Name: Chris Paulse > Version: 2.1.1 > OS: WinXP > Submission from: (NULL) (129.98.60.134) > > > This seems strange. I have a small block of code that repeatedly calls > rbinom. > I put a break in there in case it returns NaN, as I've been having problems > wi

Re: [Rd] quirky behavior from rbinom (PR#8071)

2005-08-16 Thread ripley
Please supply a reproducible example as both the FAQ and the posting guide do ask. On Tue, 16 Aug 2005 [EMAIL PROTECTED] wrote: > Full_Name: Chris Paulse > Version: 2.1.1 > OS: WinXP > Submission from: (NULL) (129.98.60.134) > > > This seems strange. I have a small block of code that repeatedly

[Rd] yaxs in bxp() (PR#8072)

2005-08-16 Thread arnima
It would be easy to add 'yaxs' support to bxp(), which can aid visual comparison when the lower limit is zero. The two lines from boxplot.R that would change are: plot.window(ylim=c(0.5,n+0.5), xlim=ylim, log=log) to plot.window(ylim=c(0.5,n+0.5), xlim=ylim, xaxs=pars$yaxs, log=log) and

[Rd] quirky behavior from rbinom (PR#8071)

2005-08-16 Thread cpaulse
Full_Name: Chris Paulse Version: 2.1.1 OS: WinXP Submission from: (NULL) (129.98.60.134) This seems strange. I have a small block of code that repeatedly calls rbinom. I put a break in there in case it returns NaN, as I've been having problems with this. Here is a transcript from the debug ses

Re: [Rd] problem using model.frame()

2005-08-16 Thread Gavin Simpson
On Tue, 2005-08-16 at 12:35 -0400, Gabor Grothendieck wrote: > On 8/16/05, Gavin Simpson <[EMAIL PROTECTED]> wrote: > > On Tue, 2005-08-16 at 11:25 -0400, Gabor Grothendieck wrote: > > > It can handle data frames like this: > > > > > > model.frame(y1) > > > or > > > model.frame(~., y1)

Re: [Rd] problem using model.frame()

2005-08-16 Thread Gabor Grothendieck
On 8/16/05, Gavin Simpson <[EMAIL PROTECTED]> wrote: > On Tue, 2005-08-16 at 11:25 -0400, Gabor Grothendieck wrote: > > It can handle data frames like this: > > > > model.frame(y1) > > or > > model.frame(~., y1) > > Thanks Gabor, > > Yes, I know that works, but I want the function coc

Re: [Rd] problem using model.frame()

2005-08-16 Thread Gavin Simpson
On Tue, 2005-08-16 at 11:25 -0400, Gabor Grothendieck wrote: > It can handle data frames like this: > > model.frame(y1) > or > model.frame(~., y1) Thanks Gabor, Yes, I know that works, but I want the function coca.formula to accept a formula like this y2 ~ y1, with both y1 and y2 bei

Re: [Rd] problem using model.frame()

2005-08-16 Thread Gabor Grothendieck
It can handle data frames like this: model.frame(y1) or model.frame(~., y1) On 8/16/05, Gavin Simpson <[EMAIL PROTECTED]> wrote: > Hi I'm having a problem with model.frame, encapsulated in this example: > > y1 <- matrix(c(3,1,0,1,0,1,1,0,0,0,1,0,0,0,1,1,0,1,1,1), > n

[Rd] problem using model.frame()

2005-08-16 Thread Gavin Simpson
Hi I'm having a problem with model.frame, encapsulated in this example: y1 <- matrix(c(3,1,0,1,0,1,1,0,0,0,1,0,0,0,1,1,0,1,1,1), nrow = 5, byrow = TRUE) y1 <- as.data.frame(y1) rownames(y1) <- paste("site", 1:5, sep = "") colnames(y1) <- paste("spp", 1:4, sep = "") y1 model.frame(~ y

[Rd] missing sh.exe file when running "R CMD INSTALL test" (PR#8068)

2005-08-16 Thread u9126801
I am trying to learn how to make a simple package that contains no C or Fortran code. I used package.skeleton(...) to make a package called "test". The directory and files look good. I downloaded and installed Rtools (www.murdoch-sutherland.com/Rtools/tools.zip). I added the path and from the d