[R] [R-pkgs] rcompletion update

2007-01-02 Thread Deepayan Sarkar
Hi, The rcompletion package, originally intended to provide completion for readline-based R interfaces, has undergone a number of changes. These changes are summarised below: o Reorganisation: - The package has been split into two. All the completion code has been moved to a pure R

Re: [R] graphical parameters: margins

2007-01-02 Thread Ricardo Rodríguez - Your XEN ICT Team
-- Ricardo Rodríguez Your XEN ICT Team >>> Gavin Simpson<[EMAIL PROTECTED]> 2/1/2007 17:44 >>> >Either of these two gives you the answer > help.search("graphical parameters") > RSiteSearch("graphical parameters margin") >more specifically, read ?par and in particular, the entry for parameter

Re: [R] Any container in R?

2007-01-02 Thread Feng Qiu
Hi Thomas: Thanks for your explanation. You are right that in C++, we try to use the same piece of codes on different type of objects. While in R, most operations are done in a "vector" way automatically, which reduced the need for containers. Best, Feng - Original Mess

Re: [R] SQLite: When reading a table, a "\r" is padded onto the last column. Why?

2007-01-02 Thread Søren Højsgaard
Hi, I put the iris data into a SQLite database with dbWriteTable(con, "iris", iris, row.names=F, overwrite = T) Then I retrieve data from the database with rs <- dbSendQuery(con, "select * from iris") d1 <- fetch(rs) dbClearResult(rs) Then I get > head(d1) Sepal_Length Sepal_Width Pe

Re: [R] Geometric Brownian Process

2007-01-02 Thread Simon Blomberg
This function samples from the solution to the stochastic differential equation of the geometric wiener process: rgwiener <- function (n=1, t=1, S0=1000, mu=0, sigma=1) { S0 * exp((mu - 1/2 * sigma^2) * t + sigma * sqrt(t) * rnorm(n)) } To test this, note that the geometric wiener process ha

[R] Problem labeling arrays

2007-01-02 Thread downunder03
Hi all. I'am sitting for hours. I have a problem labelling arrays. I am loosing labels for higher dimensions than matrices. Has anyone already faced that problem? There must be some direct way without writing complicated functions. Thanks for any hint. greetings lars x<-matrix(sin(1:90),nrow=100

Re: [R] SNA Matrix

2007-01-02 Thread Simon Blomberg
?source Salvaj, Erica wrote: > Hello > > I export a one mode network from Pajek to R, and the former made an .r file > called PajekR.r, that is actually an script to be run in R > The problem is that what the file actually does is to set a 0 martrix and > then assing to each pair of nodes the

[R] Geometric Brownian Process

2007-01-02 Thread Michael Graber
Dear R People, Consider I have 3 realizations of an Geometric Brownian process. Now i want to overlay the plot of these realizations. In a future point in time a probability density curve in this specific point of time should overlay this plot ( view rotated 90°). I am sorry for not providing

[R] arith-true mean() fails make check on IRIX

2007-01-02 Thread fissell+
Hello, I am building R-2.4.1 on an SGI IRIX platform, using gcc 3.3. gmake check failed, and the arith-true.Rout.fail file indicated: > is.na(mean(c(1,NA,NA)[-1], trim = .1, na.rm = TRUE)) [1] FALSE > I tried the mean() command in R and got: > mean(c(1,NA,NA)[-1], trim = .1, na.rm = TRUE) [1] In

Re: [R] package dependency tree

2007-01-02 Thread Seth Falcon
Matthias Kohl <[EMAIL PROTECTED]> writes: > Hello, > > http://bioconductor.org/packages/1.9/bioc/html/pkgDepTools.html > resp. > http://bioconductor.org/packages/2.0/bioc/html/pkgDepTools.html > may help you. [shameless plug] Last Month's RNews has an article that demonstrates the pkgDepTools pa

Re: [R] R modules

2007-01-02 Thread Duncan Murdoch
On 1/2/2007 12:46 PM, Geoffrey Zhu wrote: > Hi All, > > I'd like to know what is the best way to organize R code in multiple modules= > and files. The R code we are writing is too much for a single file. Besides= > , there are a lot of reusable functions we'd like to factor out. But writing= > a

Re: [R] lattice panel.linejoin type question

2007-01-02 Thread Deepayan Sarkar
On 1/2/07, Walker, Sam <[EMAIL PROTECTED]> wrote: > Hello R Users! > > I'm trying to use the panel.linejoin function to draw points and lines > (type="o") but it wouldn't do it. Modifying the panel.linejoin function > as such (adding type argument to the panel.lines call). > > *original* >

Re: [R] package dependency tree

2007-01-02 Thread Prof Brian Ripley
On Tue, 2 Jan 2007, roger koenker wrote: > Is there a painless way to find the names of all packages on CRAN > that "Depend" on a specified package? Assuming you have just CRAN in your selected repositories: > foo <- available.packages() > deps <- strsplit(foo[, "Depends"], ",[[:space:]]*") > na

Re: [R] package dependency tree

2007-01-02 Thread Peter Dalgaard
roger koenker wrote: > Is there a painless way to find the names of all packages on CRAN > that "Depend" on a specified package? > Depends on how accurately you need them. These *probably* depend on "boot" > x <- available.packages() > rownames(x)[grep("boot",x[,"Depends"])] [1] "circular"

Re: [R] package dependency tree

2007-01-02 Thread Sebastian P. Luque
On Tue, 2 Jan 2007 11:20:10 -0600, roger koenker <[EMAIL PROTECTED]> wrote: > Is there a painless way to find the names of all packages on CRAN that > "Depend" on a specified package? Maybe this is not too painful: pkgs <- available.packages()# repos arg may be useful here pkgs.dpnd

Re: [R] package dependency tree

2007-01-02 Thread Matthias Kohl
Hello, http://bioconductor.org/packages/1.9/bioc/html/pkgDepTools.html resp. http://bioconductor.org/packages/2.0/bioc/html/pkgDepTools.html may help you. Best regards, Matthias Gabor Grothendieck schrieb: > Try this, noting that available.packages() returns a matrix whose columns > include "Dep

Re: [R] R modules

2007-01-02 Thread Gabor Grothendieck
You could have a master file that sources the rest: source("A.R") source("B.R") or you could save the function in a workspace and just load it back in; however, at some point I would move that all to a package. I typically will create a package for myself even if I have no intention of distribut

Re: [R] package dependency tree

2007-01-02 Thread Gabor Grothendieck
Try this, noting that available.packages() returns a matrix whose columns include "Depends" and "Suggests" and whose rownames are the package names: > AP <- available.packages() > rownames(AP)[grep("quantreg", AP[, "Depends"])] [1] "cobs""emplik" "lss" "rankreg" "rqmcmb2" > rownames(AP)[g

[R] R modules

2007-01-02 Thread Geoffrey Zhu
Hi All, I'd like to know what is the best way to organize R code in multiple modules= and files. The R code we are writing is too much for a single file. Besides= , there are a lot of reusable functions we'd like to factor out. But writing= a package for that is quite an over-kill and might be t

[R] user-specified random effects design matrix in glmmPQL?

2007-01-02 Thread Minya Pu
Hi, I want to do a logistic regression model with random effects but I need to sepcify my own design matrix for the random effects. Can I do it in glmmPQL or anything similar? If so, how? Thanks, Minya __ R-help@stat.math.ethz.ch mailing list https://s

[R] package dependency tree

2007-01-02 Thread roger koenker
Is there a painless way to find the names of all packages on CRAN that "Depend" on a specified package? url:www.econ.uiuc.edu/~rogerRoger Koenker email[EMAIL PROTECTED]Department of Economics vox: 217-333-4558University of Illinois fax: 21

Re: [R] graphical parameters: margins

2007-01-02 Thread Gavin Simpson
On Tue, 2007-01-02 at 17:02 +0100, Ricardo Rodríguez - Your XEN ICT Team wrote: > Hi all, > > Please, while using image() which is the graphical parameter which > control the space between ylab and the y axis? I do need to write a > number of relatively long y labels and I am not able the control

Re: [R] Survfit with a coxph object

2007-01-02 Thread Terry Therneau
> When I run coxph I get the coxph object back fairly quickly, > however when I try to run survfit it does not come back. If you are very, very patient the routine will come back eventually. Unfortunately, for some very large data sets this could be months... The reason is that the algori

Re: [R] bug in odfWeave

2007-01-02 Thread Kuhn, Max
I've verified this bug and will be releasing a new version shortly. Max -Original Message- From: Abhijit Dasgupta [mailto:[EMAIL PROTECTED] Sent: Saturday, December 23, 2006 12:03 AM To: r-help@stat.math.ethz.ch; Kuhn, Max Subject: bug in odfWeave Hi, I think there is a minor bug in o

[R] graphical parameters: margins

2007-01-02 Thread Ricardo Rodríguez - Your XEN ICT Team
Hi all, Please, while using image() which is the graphical parameter which control the space between ylab and the y axis? I do need to write a number of relatively long y labels and I am not able the control, if possible, this space. See the effect I need to avoid... http://nvx.environmentalc

[R] lattice panel.linejoin type question

2007-01-02 Thread Walker, Sam
Hello R Users! I'm trying to use the panel.linejoin function to draw points and lines (type="o") but it wouldn't do it. Modifying the panel.linejoin function as such (adding type argument to the panel.lines call). *original* panel.lines(vals[xx], yy, col = col.line, lty = lty,

Re: [R] RMySQL adn FC6 - install fail

2007-01-02 Thread Peter Dalgaard
R Gott wrote: (With a name like that you'd better get good at this) ;-) > Dear anybody > > I am running Fedora Core 6 with the latest version of R. > > When I try to install the package RMySQL I get this message: > > * Installing *source* package 'RMySQL' ... > creating cache

Re: [R] Does SQL group by have a heavy duty equivalent in R

2007-01-02 Thread BBands
On 1/1/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > And it works perfectly well with RODBC, so you don't need yet > another package. RODBC even comes with SQLite examples. Thanks, I hadn't thought of that and it should simplify things as we are already using RODBC for MySQL. > BTW, 'fast'

[R] en congé

2007-01-02 Thread bcutayar
Je serai absent(e) à partir du 02/01/2007 de retour le 08/01/2007. Vous pouvez contacter M.Bidart en mon absence. >Bonne année 2007 << Si vous n'etes pas destinataires de ce message, merci d'aver...{{dropped}} __ R-help@s

[R] [R-pkgs] pls version 2.0-0

2007-01-02 Thread Bjørn-Helge Mevik and Ron Wehrens
Version 2.0-0 of the pls package is now available on CRAN. The pls package implements partial least squares regression (PLSR) and principal component regression (PCR). Features of the package include - Several plsr algorithms: orthogonal scores, kernel pls and simpls - Flexible cross-validation

Re: [R] How to extract the variance componets from lme

2007-01-02 Thread joris . dewolf
I advice you strongly to use VarCorr(), but if you insist tmp <- as.matrix(m1$modelStruct$reStruct$MI) c(sqrt(diag(tmp)), Residual = 1) * m1$sigma Joris [EMAIL PROTECTED] wrote on 02/01/2007 12:50:05: > Here is a piece of code fitting a model to a (part) of a dataset, just > for > illustration

[R] RMySQL adn FC6 - install fail

2007-01-02 Thread R Gott
Dear anybody I am running Fedora Core 6 with the latest version of R. When I try to install the package RMySQL I get this message: * Installing *source* package 'RMySQL' ... creating cache ./config.cache checking how to run the C preprocessor... /lib/cpp checking

[R] How to extract the variance componets from lme

2007-01-02 Thread BXC (Bendix Carstensen)
Here is a piece of code fitting a model to a (part) of a dataset, just for illustration. I can extract the random interaction and the residual variance in group meth==1 using VarCorr, but how do I get the other residual variance? Is there any way to get the other variances in numerical form direct

Re: [R] SNA Matrix

2007-01-02 Thread Tobias Verbeke
Salvaj, Erica wrote: > Hello > > I export a one mode network from Pajek to R, and the former made an .r file > called PajekR.r, that is actually an script to be run in R > The problem is that what the file actually does is to set a 0 martrix and > then assing to each pair of nodes the correspo

[R] SNA Matrix

2007-01-02 Thread Salvaj, Erica
Hello I export a one mode network from Pajek to R, and the former made an .r file called PajekR.r, that is actually an script to be run in R The problem is that what the file actually does is to set a 0 martrix and then assing to each pair of nodes the corresponding values. Since the matrix is

Re: [R] Help with filled.contour()

2007-01-02 Thread Dieter Menne
Michael Kubovy virginia.edu> writes: > > I tried and it gave a strange result. See > http://people.virginia.edu/~mk9y/mySite/twoGaussian.R > and > http://people.virginia.edu/~mk9y/mySite/twoGaussian.pdf > > * > Session Info > * >