Re: [R] issues with identical()

2005-05-20 Thread Duncan Murdoch
be a difference in the attributes (e.g. rownames of the dataframe, or names of one of the columns). One thing that might turn up the difference is to use dump() to write out the objects to a file, and use some text-based compare on those files. Duncan Murdoch

Re: [R] R annoyances

2005-05-20 Thread Duncan Murdoch
to rewrite it as +(a,b), but think of the benefits! You+can+write+out+long+sentences+and+use+them+as+variable+names! Duncan Murdoch And the double benefit is that it leaves case available for other good uses, such as indicating an object's scope: local.var Class.Data GLOBAL.SETTING --Todd

Re: [R] fast matrix update

2005-05-18 Thread Duncan Murdoch
be slow. If this is really a crucial bottleneck to your calculation, I'd suggest skipping over that optimization and redoing the function in C or Fortran. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Why can't I download window binary zip packages

2005-05-18 Thread Duncan Murdoch
have access, but your own system might. Duncan Murdoch Thank you Lisa Wang Msc. Princess Margaret Hospital Toronto , Canada tel: (416) 946 4501 ext.5201 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] The error in R while using bugs.R function

2005-05-17 Thread Duncan Murdoch
, or he did. I'm guessing you didn't run library() to load the package. Generally when a contributed package doesn't work, you should ask the maintainer for help. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] NA erase your data trick

2005-05-17 Thread Duncan Murdoch
or (b) Replace just the last line above with if (is.na(tcn5[n,i]) | tcn5[n,i] == -9) tcn5[n,i] - NA I'd choose (a); it's a lot cleaner and will run faster. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] parsing speed

2005-05-16 Thread Duncan Murdoch
Federico Calboli wrote: Hi everyone, I have a question on parsing speed. I have two functions: F1 F2 As things are now, F2 calls F1 internally: F2 = function(x){ if (something == 1){ y = F1(x) } if (something ==2){ do whatever } } *Assuming there could be some difference*, is is faster to use the

Re: [R] Lists, Vectors, TclTk

2005-05-09 Thread Duncan Murdoch
]] - tkcheckbutton(tt). I'd also recommend using cbs - list() instead of cbs - c() because I find it represents your intentions more clearly, but both work. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Numerical Derivative / Numerical Differentiation of unkno wn funct ion

2005-05-06 Thread Duncan Murdoch
) Bandwidth Selection by Pilot Estimation of Derivatives D(stats)Symbolic and Algorithmic Derivatives of Simple Expressions numericDeriv(stats) Evaluate derivatives numerically How could that be better? Duncan Murdoch

Re: [R] Density of the sum of two random variables

2005-05-05 Thread Duncan Murdoch
get numerical approximations to the density at any point using integrate() (or sum(), if a discrete distribution is involved). Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] contributed package source codes

2005-05-04 Thread Duncan Murdoch
chooseCRANmirror() first, if it hasn't already been called.) The source to base packages is in the R source, also on CRAN. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Unbundling gregmisc (was: loading gap package)

2005-05-04 Thread Duncan Murdoch
in Windows, not sure about other platforms), so I'd say this would be a good thing to do. I don't know your revision history on the components, but I'd guess some change more often than others, so there'll be no need to update all of them every time one of them changes. Duncan Murdoch

Re: [R] rank of a matrix

2005-05-04 Thread Duncan Murdoch
problem where I didn't already know the answer? Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] RMySQL query: why result takes so much memory in R ?

2005-05-02 Thread Duncan Murdoch
times 36 or about nearly half a Gig for each copy. Presumably the code is storing more than one or two copies of the data. Why don't you use fetch() to get your records in more manageable chunks? Duncan Murdoch ## my code library(RMySQL) drv - dbDriver(MySQL) ch - dbConnect(drv,dbname=testdb

Re: [R] How to extract function arguments literally

2005-04-30 Thread Duncan Murdoch
language, the parser is going to complain about it. The only solution here would be to parse the whole thing yourself (i.e. parse the R source), rather than using the R parser. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https

Re: [R] Memory consumption, integer versus factor

2005-04-30 Thread Duncan Murdoch
? I think not, given the more modest gains that I see. Does he go down till a byte? A four-byte word instead of 8-bytes of storage? What are Ncells and Vcells, and what determines his consumption of memory for each kind? See the man pages ?gc, ?Memory, and the source code. Duncan Murdoch

Re: [R] Problems installing and updating packages for 2.1.0 on Windows 2000

2005-04-26 Thread Duncan Murdoch
as though you need to configure a proxy for Internet access. See the discussion in the R for Windows FAQ (which gives other possibilities too). Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Restarting R without quitting R

2005-04-25 Thread Duncan Murdoch
the search list to a default. It executes startup code from various places. BTW, I'm not sure what you mean when you say that gc() may return from R to operating system. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] Upgrading R

2005-04-25 Thread Duncan Murdoch
by Duncan Murdoch frequently. Of course, you can get the sources at arbitrary time and compile yourself hourly, if you prefer. ;-) At present, frequently = daily is the target, but occasionally I miss the target for various reasons, such as a build error or something wrong with my job

Re: [R] How to tell if R is running in batch mode

2005-04-22 Thread Duncan Murdoch
Khabie-Zeitoune, David wrote: Hi Is there a way to programmatically tell whether R is running in batch or GUI mode? ?interactive __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] how to get code of a .Internal() function?

2005-04-20 Thread Duncan Murdoch
, 0}}, which tells you that the do_optim routine handles this stuff. Further searches would show you that this function is defined in src/main/optim.c. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Printing a single \ character

2005-04-19 Thread Duncan Murdoch
what you want to get, but it might be cat( sub(_, _, g_g) ); cat(\n) g\_g The extra escapes are necessary because you need to send \\ to sub so that it outputs a \. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] Define local function

2005-04-16 Thread Duncan Murdoch
on the search path). This might not be perfect, since you can use attach() to modify the search path, but it would likely be good enough to flush out simple programming bugs. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] How to plot Contour with NA in dataframe

2005-04-13 Thread Duncan Murdoch
- as.matrix(as.data.frame(lapply(myData,as.numeric))) Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] R as programming language: references?

2005-04-12 Thread Duncan Murdoch
... and is as up-to-date as possible. Can anyone suggest any book or other reference apart from the green book and the VR S-programming? I think you've already got the best references. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https

Re: [R] removing characters from a string

2005-04-12 Thread Duncan Murdoch
and padding, but is sometimes a little obscure in how it does them. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Building R packages under Windows.

2005-04-11 Thread Duncan Murdoch
-project.org/bin/windows/base/rdevel.html. I do not think the beta manuals are online anywhere separate from the full release. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Building R packages under Windows.

2005-04-11 Thread Duncan Murdoch
alternative is the easiest. I think this only affects you if you are building vignettes.) I'm no longer sure they intend to fix it. Since I wrote those instructions, they came out with a new release that breaks one of the workarounds. Duncan Murdoch __ R

Re: [R] hex format

2005-04-08 Thread Duncan Murdoch
without the temporary file. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] hex format

2005-04-07 Thread Duncan Murdoch
with colors much more convenient). Why isn't this system independent now? Presumably because nobody thought it was important enough to make it so. R isn't a low level system programming language, so why should it treat hex specially? Duncan Murdoch __ R-help

Re: [R] Precision

2005-04-06 Thread Duncan Murdoch
floating point operations R uses double precision, which gives about 18-19 significant digit precision. Leading zeros don't count. Duncan Murdoch Thanks Josef Eschgfäller Ferrara --- Vol = function (m) {if (m=1) 1 else Vol(m-2)*pi/(m+m)} for (m in 1:40) {x

Re: [R] Precision

2005-04-06 Thread Duncan Murdoch
Duncan Murdoch wrote: For most floating point operations R uses double precision, which gives about 18-19 significant digit precision. Leading zeros don't count. Oops, Jan Kim is right: double precision is only 15-16 digit precision. Sorry. Duncan Murdoch

Re: [R] Dead wood code

2005-04-05 Thread Duncan Murdoch
. The package was called WiSP. I don't see it on CRAN, but you can read the abstract here: http://www.math.usu.edu/~iface03/abstracts/03049.html Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Categorizing functions (was: [R] is there a function like %in% for characters?)

2005-04-04 Thread Duncan Murdoch
(), and look at search engine and keywords. help.search() also has a keyword argument, but you need to know the keywords to know what to look for. ?help.search shows you how to find them. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https

Re: [R] a R function for sort a data frame.

2005-04-01 Thread Duncan Murdoch
On Thu, 31 Mar 2005 22:22:32 -0500, Mario Morales [EMAIL PROTECTED] wrote : Is there a R function for sort a data frame by a variable ? I know sort a vector, but I don't know sort a data frame by a column. Can you help me ? the sort() function don't work with data frame. This is a FAQ, but

Re: [R] pairewise plots

2005-03-29 Thread Duncan Murdoch
] n1 - colnames(dat)[2*i - 1] n2 - colnames(dat)[2*i] plot(c1+c2, c1-c2, main=paste(Pair, i,:,n1, n2)) } Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http

Re: [R] R equivalent to funcall?

2005-03-17 Thread Duncan Murdoch
() comes close to what you want. For example, opts - list(cex=2, lty=3, type='b') do.call(plot, c(list(1:10, rnorm(10)), opts)) This messes up some of the tricks plot() uses to set default axis labels, but otherwise it may be close to what you're after. Duncan Murdoch

Re: [R] R equivalent to funcall?

2005-03-17 Thread Duncan Murdoch
') do.call(function(...) plot(1:10,rnorm(10),...), opts) Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] missing sh.exe file when running R CMD INSTALL test

2005-03-15 Thread Duncan Murdoch
On Tue, 15 Mar 2005 14:26:42 -0500, roger bos [EMAIL PROTECTED] wrote : 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

Re: [R] Bug on MWC1019?

2005-03-14 Thread Duncan Murdoch
cc'd). By the way, I agree that code does look wrong, but it would also be helpful to provide R code that gives obviously wrong answers because of it. Duncan Murdoch ULONG MWC1019(void){ ULONG long t; int i = endQ-1; t = 147669672LL*Q[i] + Q[endQ]; Q[endQ

Re: [R] The corresponding Fortran77 codes for R function pt()

2005-03-14 Thread Duncan Murdoch
give me some information about it? Others have pointed you to the source code for that function. You may also want to call it directly: R exports some functions with C interfaces (that should be callable from Fortran, too). See the R API chapter in the Writing R Extensions manual. Duncan

Re: [R] Simplex(boot) returning invalid answer

2005-03-13 Thread Duncan Murdoch
to add stopifnot(all(c(b1, b2, b3) = 0)) to the beginning of the function rather than giving a bad answer for bad input. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] Is anyone using the MiniR distribution?

2005-03-10 Thread Duncan Murdoch
On Fri, 04 Feb 2005 14:45:35 +, Duncan Murdoch [EMAIL PROTECTED] wrote : On Fri, 4 Feb 2005 14:46:03 +0100, Martin Maechler [EMAIL PROTECTED] wrote : Duncan == Duncan Murdoch [EMAIL PROTECTED] on Fri, 04 Feb 2005 09:50:22 + writes: Duncan The miniR files only include

Re: [R] How to get standard deviation of rows in a matrix

2005-03-09 Thread Duncan Murdoch
are the first dimension, so you would use apply(genes, 1, sd) Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] How to use a R package with C code

2005-03-09 Thread Duncan Murdoch
mistake? You aren't giving enough information for anyone to know that. You need to tell us exactly what you did to create your package, and what operating system you're on. Duncan Murdoch Maggie [Previously saved workspace restored] library(var) Attaching package 'var

Re: [R] 3D plot not working as desired!

2005-03-08 Thread Duncan Murdoch
the observations, just like the 95% confidence ellipse around the bivariate normal random numbers. I don't know a package that does that, but there probably is one. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo

Re: [R] a==0 vs as.integer(a)==0 vs all.equal(a,0)

2005-03-08 Thread Duncan Murdoch
. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] How can we ring a bell in Windows?

2005-03-07 Thread Duncan Murdoch
, then you could call the Windows API function MessageBeep from some C code, but I don't think we have a bell or beep function in the standard R packages. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] How can we ring a bell in Windows?

2005-03-07 Thread Duncan Murdoch
On Mon, 7 Mar 2005 18:18:37 + (GMT), Prof Brian Ripley [EMAIL PROTECTED] wrote : On Mon, 7 Mar 2005, Duncan Murdoch wrote: On Tue, 8 Mar 2005 00:31:07 +0800 (CST), Lu Joseph [EMAIL PROTECTED] wrote : Hello useRs, Is there a way to write code in R to ring a bell in Windows? If you

Re: [R] error when when making package tcltk from source (R.0.1)

2005-03-06 Thread Duncan Murdoch
in Unix. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] apply a function to a rolling subset of a vector

2005-03-02 Thread Duncan Murdoch
other linear filter. e.g. x - rnorm(1000) y - filter(x, rep(1,20)) puts 20 element sums into y. The vector ends up the same length as x, with NAs at the beginning and end (by default). Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https

Re: [R] Negative intercept in glm poisson model

2005-03-01 Thread Duncan Murdoch
. Suppose glm() constrained the intercept to be positive, and you ended up fitting a positive slope: then you would still get negative predictions for sufficiently large negative values of the predictor variables. Duncan Murdoch __ R-help@stat.math.ethz.ch

Re: [R] Help : delete at random

2005-03-01 Thread Duncan Murdoch
of the index you don't want). This works for vectors i, so df[-sample(1:N, n), ] would delete a random selection of n rows from N. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] write a library under 2.0.1 version

2005-03-01 Thread Duncan Murdoch
the Writing R Extensions manual for more details. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Slightly off topic but concerning R#DSC-2005

2005-02-24 Thread Duncan Murdoch
On Wed, 23 Feb 2005 11:52:26 +0100, Ritter, Christian C GSMCIL-GSTMS/2 [EMAIL PROTECTED] wrote : Has anyone seen an official announcement to DSC-2005. It's just been posted to R-devel; you can see it online at http://tolstoy.newcastle.edu.au/R/devel/05/02/2326.html Duncan Murdoch

Re: [R] circ.summary question

2005-02-24 Thread Duncan Murdoch
version are you using? What are you doing. And of course: PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Slightly off topic but concerning R#DSC-2005

2005-02-23 Thread Duncan Murdoch
announcement to request funding and travel permission and flights from Europe to Seattle are starting to fill up, so this is urgent). For the benefit of others, here is the posting giving the time and place. I don't think the official call for papers has come out yet. Duncan Murdoch From

Re: [R] Graphics

2005-02-22 Thread Duncan Murdoch
installed, and give the command that crashes it, but I would say there is definitely something wrong with your system or your install, because it certainly doesn't crash for most people. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https

Re: [R] round() - strange results

2005-02-22 Thread Duncan Murdoch
If this doesn't handle negatives the way you want, play around a bit with abs(). Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] rw2001 RMA in GeenSpring Error in sigToEnv

2005-02-21 Thread Duncan Murdoch
, or at least an incompatibility with the latest version of R. You want to contact its authors. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting

Re: [R] real and complex vectors

2005-02-16 Thread Duncan Murdoch
the top of my head I can't think of any cases where R code that expects a complex vector would fail if passed a real one, but it's certainly easy to construct cases in external code.) I think it's safer to make the conversion explicitly if you happen to know that all(make.real) is true. Duncan

Re: [R] Repeating grey scale in graph?

2005-02-16 Thread Duncan Murdoch
of the number of rows [5] in matrix except that in this case you get a warning about the wrong length; persp doesn't give you the warning. Maybe it should? Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Problem with R CMD Rd2dvi: Rd.sty not found

2005-02-15 Thread Duncan Murdoch
your $R_HOME/bin/helpprint.bat file so that it makes use of the TEXINPUTS environment variable. You want the pdftex command to have something like -include-directory=%TEXINPUTS% in it and then it will look in the right places for the includes. Duncan Murdoch To: Duncan Murdoch [EMAIL PROTECTED

Re: [R] Problem with R CMD Rd2dvi: Rd.sty not found

2005-02-15 Thread Duncan Murdoch
, testable in multiple versions of LaTeX. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] rename object

2005-02-08 Thread Duncan Murdoch
not usually what one wants. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Environment of a formula

2005-02-07 Thread Duncan Murdoch
environment(fo) NULL It works for me too, so I'm not sure what problem Adrian was having. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org

Re: [R] DLL hangs

2005-02-07 Thread Duncan Murdoch
out what is going wrong with Cygwin, I'd be happy to add a section of your findings. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting

[R] Is anyone using the MiniR distribution?

2005-02-04 Thread Duncan Murdoch
tested. Rather than building something that may not even work, I'd like to stop building them. Would this be a problem for anyone? Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Is anyone using the MiniR distribution?

2005-02-04 Thread Duncan Murdoch
On Fri, 4 Feb 2005 14:46:03 +0100, Martin Maechler [EMAIL PROTECTED] wrote : Duncan == Duncan Murdoch [EMAIL PROTECTED] on Fri, 04 Feb 2005 09:50:22 + writes: Duncan The miniR files only include a minimal installation Duncan of R, and are rarely tested. Rather than building

Re: [R] extracting from a data.frame

2005-01-28 Thread Duncan Murdoch
of different combinations of [... but I couldn't make it. a[a$V3 == O, ] or with(a, a[V3 == O, ]) which makes more sense when the selection expression is more complicated, because you don't need the a$ prefix on every column. Duncan Murdoch P.S. your return address fails

Re: [R] How to use identify

2005-01-24 Thread Duncan Murdoch
and select stop. You want to give both x and y coordinates to identify(), matching the points you plotted, e.g.. change your example to plot((our.frame2$c1),(our.frame2$c9)) # Produces desired plot identify(our.frame2$c1, our.frame2$c9) # Give the same coords Duncan Murdoch

Re: [R] niceness

2005-01-21 Thread Duncan Murdoch
in OS X, but does Windoze's advertized POSIX compliance mean anything here? It doesn't compile with the standard MinGW installation, because the sys/resource.h header file isn't found. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https

Re: [R] Windows Front end-crash error

2005-01-20 Thread Duncan Murdoch
]] - glsrun2$coefficient[2] } Hopefully this will let someone more familiar with nlme track it down. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org

Re: [R] help with hist-plots?

2005-01-19 Thread Duncan Murdoch
hist, it returns a list of things that are necessary to reproduce the plot. Try printing it using print(hist( ... )), and you should be able to see which component contains the numbers you want to send to gnuplot. Duncan Murdoch __ R-help

Re: [R] 3d bar plot

2005-01-17 Thread Duncan Murdoch
of the things on my to-do list is to port it to rgl. This may happen in about a month. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting

Re: [R] Overlapping grid in plot

2005-01-16 Thread Duncan Murdoch
(1,2,4,3,2), legend.text = Legend) par(oldpar) # restore the old colour Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Overlapping grid in plot

2005-01-15 Thread Duncan Murdoch
the problem. There are several ways to draw a bar chart; how to fix yours depends on which one you used. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R

Re: [R] R-etiquette

2005-01-10 Thread Duncan Murdoch
information. Duncan Murdoch __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Does R accumulate memory

2005-01-08 Thread Duncan Murdoch
to ask Windows for new memory to store things in. You could try deleting everything in your workspace before running the 2nd simulation; this should reduce the fragmentation. Or you could run the big simulation first, then the smaller one will fit in the holes left from it. Duncan Murdoch

Re: [R] Difference between R CMD build --binary and R CMD INSTALL --build

2005-01-04 Thread Duncan Murdoch
On Tue, 4 Jan 2005 11:31:27 -, michael watson \(IAH-C\) [EMAIL PROTECTED] wrote: As the title suggests, when building R packages on Windows, what is the difference between: R CMD build --binary mypack And R CMD INSTALL --build mypack ?? The former is suggested by my previous notes and

Re: [R] Inspecting R functions

2005-01-03 Thread Duncan Murdoch
On Mon, 03 Jan 2005 10:50:22 +, Richard Dybowski [EMAIL PROTECTED] wrote: In S-Plus, I can look at the structure of a function (for example, hist) simply by entering hist RETURN however, if I do this in R, I get the response function (x, ...) UseMethod(hist)

Re: [R] Rgui.exe - Error while tuning svm

2004-12-21 Thread Duncan Murdoch
, not actually in Rgui. Duncan Murdoch __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] 2.01

2004-12-10 Thread Duncan Murdoch
example, and it worked with no error. You'll need to show us how you constructed mf before we can help with this. Duncan Murdoch __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http

Re: [R] Modyfing PATH in Windows Installer for R

2004-12-06 Thread Duncan Murdoch
change what they've done. For example, I set my path in F:/cygwin/etc/profile, but I may be the only R user who uses that particular file... Duncan Murdoch __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Modyfing PATH in Windows Installer for R

2004-12-06 Thread Duncan Murdoch
executable that provides the start command externally. It's trivial to write (if you don't want all the bells and whistles of the internal one). Duncan Murdoch __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Modyfing PATH in Windows Installer for R

2004-12-06 Thread Duncan Murdoch
/kb/view.asp?articleid=Q100090 But we still have users using Win9x versions, which use a more DOS-like method of setting the path. At some point we'll drop support for them, but I don't want to do it sooner than necessary. Duncan Murdoch __ [EMAIL

Re: [R] VR package not found for R version 1.9.1

2004-12-06 Thread Duncan Murdoch
of R (version 2.0.1 succeeds in getting VR now), or to build the package from source (which requires a number of tools to be installed; see R for Windows FAQ 3.1 Can I install packages into libraries in this version? for details). Duncan Murdoch __ [EMAIL

Re: [R] main R Gui window size under Windows

2004-12-06 Thread Duncan Murdoch
main window at all. If you're using the MDI interface, there's no option to make it appear un-maximized. Duncan Murdoch __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R

Re: [R] boot package

2004-12-05 Thread Duncan Murdoch
result Duncan Murdoch __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Re: [R] Protocol for answering basic questions

2004-12-01 Thread Duncan Murdoch
each other. One part of the help is to tell beginners where the resources are that they should learn from. Duncan Murdoch __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R

Re: [R] Protocol for answering basic questions

2004-12-01 Thread Duncan Murdoch
to be a participant (in general I dislike live online chat), but to each his own. Duncan Murdoch __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Attn Heinz Tuechler: Re: problem with special characters (ä,ö,ü)

2004-11-30 Thread Duncan Murdoch
? Duncan Murdoch On Sat, 27 Nov 2004 23:31:23 +0100, Heinz Tuechler [EMAIL PROTECTED] wrote : Dear Developers! Using special characters I found a strange behaviour in R 2.0.1 and equally in R : Copyright 2004, The R Foundation for Statistical Computing Version 2.0.1 (2004-11-15), ISBN 3-900051

Re: [R] How to know if a bug was recognised

2004-11-30 Thread Duncan Murdoch
part of FAQs or documentation did I miss to find the answer? If you send a private email, please use a return address that works. I got messages that [EMAIL PROTECTED] has been disabled when I tried to respond there. Duncan Murdoch __ [EMAIL PROTECTED

Re: [R] Error using glm with poisson family and identity link

2004-11-29 Thread Duncan Murdoch
. I love that image: the little optimizer that couldn't. I hope the fortunes maintainer is listening... Duncan Murdoch __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R

Re: [R] proper way to process dataframe by rows

2004-11-28 Thread Duncan Murdoch
probably better off extracting the columns of the dataframe as vectors, and working with those. Duncan Murdoch __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org

Re: [R] how to pause between plots running scripts?

2004-11-27 Thread Duncan Murdoch
I used pause() from library(DAAG) to pasue between plots. This works when I source a script, but seems don't work when I run (ctrl + R) the script in R. This sounds like a bug to me, but I'm not sure it's going to be an easy one to fix. Duncan Murdoch

Re: [R] unexpected behaviour of 'curve' function

2004-11-26 Thread Duncan Murdoch
don't think it has any influence on this particular effect. That's a pretty serious bug in delay(). It's been there at least since 1.9.1. Duncan Murdoch __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] unexpected behaviour of 'curve' function

2004-11-26 Thread Duncan Murdoch
On Fri, 26 Nov 2004 18:48:45 -0500, Duncan Murdoch [EMAIL PROTECTED] wrote: On 26 Nov 2004 12:27:35 +0100, Peter Dalgaard [EMAIL PROTECTED] wrote: Having pu end up in the global environment looks like a bug in delay() but I don't think it has any influence on this particular effect. That's

Re: [R] Turning strings into expressions

2004-11-25 Thread Duncan Murdoch
this? parse() does the conversion to an expression, but doesn't evaluate it. So you probably want eval(parse(text = A == 1 B == 2)) but you may want to set the envir argument to eval, to tell R where to go looking for A and B. Duncan Murdoch __ [EMAIL

[R] Searching for a string in RSQLite

2004-11-25 Thread Duncan Murdoch
(con, paste(SELECT * from USArrests where row_names=',state,',sep=)) Error in sqliteExecStatement(con, statement) : RS-DBI driver: (error in statement: near (: syntax error) Duncan Murdoch __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch

<    6   7   8   9   10   11   12   13   14   15   >