[R] factorial function

2003-02-14 Thread Serge Boiko
Sorry for the stupid question, but is there the factorial function in R? I tried to find it using help.search('factorial') but got nothing appropriate. Many thanks, -Serge __ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo

[R] problems with ess and xemacs on win32

2003-02-11 Thread Serge Boiko
Hi there; I have the following problem --- Xemacs cannot correctly parse a path to file when I load it. I have the following error, reported by Xemacs: from ess-parse-errors: Error in file(file, "r") : cannot open file `u:US-mortalityjuttalexible.r While the correct file path should be: u:\US-

Re: [R] postscript: can't center plot

2003-02-07 Thread Serge Boiko
Deborah, Perhaps, a good idea is to use eps output to include it into a LaTeX document, in this manner you can format and layout your graphics exactly the way you want. If you need more information, I'm ready for your disposal. -Serge __ [EMAIL PROTECT

[R] string to number conversion

2003-01-29 Thread Serge Boiko
Hi there; In order to convert sting to number I do: s <- "22" mode(s) <- "integer" # "double", etc. will do Is that a "preferred" way? Many thanks. -Serge __ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] substitute, eval and hastables

2003-01-29 Thread Serge Boiko
Robert Gentleman <[EMAIL PROTECTED]> writes: > > If you want hash table behavior you could try using environments (as > that is really about all that they are). I have been spending some > time thinking (and a little coding) about a hash table class but it > is unlikely to appear before the s

Re: [R] substitute, eval and hastables

2003-01-29 Thread Serge Boiko
Uwe Ligges <[EMAIL PROTECTED]> writes: >nn.Exp <- substitute(a$b, list(b=nn[1])) >eval(nn.Exp) Thanks, Uwe. It does work, but, surely using brackets is better. -Serge __ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listi

[R] substitute, eval and hastables

2003-01-29 Thread Serge Boiko
I have the following problem. I have an automatically generated named list with "stringified" names: a <- list("A"=..., "B"=..., "C"=..., ) then I want to refer to the elements of the list, stored as an vector of names: nn <- c("A", "B", "C"), so that I could get list elements like a$nn[1], a$

[R] getting attributes of graphics objects

2003-01-20 Thread Serge Boiko
Hi there; Is there a facility to query/get/modify graphics attributes in R? I mean something similar to Matlab's get/set functions, say in order to get x and y data in Matlab I use: h=get(gcf, 'children') xdata=get(h(1), 'xdata') % get x of the first children Is there an R's counterpart? I'm aw