Re: [R] How to unload a package or undo library(package)

2006-01-09 Thread Prof Brian Ripley
See the rw-FAQ, Q4.8 On Mon, 9 Jan 2006, Ales Ziberna wrote: If I do detach(package:blockmodeling) My package blockmodeling does not appear in (.packages()) [1] methods stats graphics grDevices utils datasets [7] base However, if I want to install a newer version from a local

Re: [R] paste tab and print

2006-01-09 Thread Prof Brian Ripley
On Mon, 9 Jan 2006 [EMAIL PROTECTED] wrote: Dear all, info = paste('a', 'b', sep='\t') print(info , quote=F) doesn't produce the same result with R201 and R220 (under Windows2000) (There are no such versions of R, and neither is current.) R 2.0.1 : [1] a b R 2.2.0 : [1] a\tb I did

Re: [R] Missing value representation in Excel before extraction to R with RODBC

2006-01-09 Thread Prof Brian Ripley
On Mon, 9 Jan 2006, Petr Pikal wrote: Hi I believe it has something to do with the column identification decision. When R decides what is in a column it uses only some values from the beginning of a file. Not R, Excel. Excel tells ODBC what the column types are. I do not use RODBC as

Re: [R] [R-pkgs] sudoku

2006-01-09 Thread Martin Maechler
First, thanks a lot! to David Brahms for finally tackling this important problem, and keeping the R language major league ! ;-) :-) {but the thanks! is meant seriously!} Detlef == Detlef Steuer [EMAIL PROTECTED] on Sun, 8 Jan 2006 12:21:52 +0100 writes: Detlef Hey, you spoiled my

Re: [R] How to unload a package or undo library(package)

2006-01-09 Thread Ales Ziberna
Thank you! I guess it can not be done! Best, Ales Ziberna -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: Monday, January 09, 2006 9:19 AM To: Ales Ziberna Cc: r-help@stat.math.ethz.ch Subject: Re: [R] How to unload a package or undo library(package) See

[R] How to restore workspace from .RDataTmp?

2006-01-09 Thread Helene Wagner
Can I restore a workspace from .RDataTmp (under Windows), and how should I do this? Whenever I try, I get the messages Error in load(name, envir = .GlobalEnv) : error reading from connection (in the R command window) and/or Fatal error: unable to restore saved data in .RData (Windows). I was

Re: [R] need palette of topographic colors similar to topo.colors()

2006-01-09 Thread David Ruau
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 have a look at http://colorbrewer.org/ and install the package RColorBrewer David On Jan 7, 2006, at 20:34, bogdan romocea wrote: Dear useRs, I got stuck trying to generate a palette of topographic colors that would satisfy these two

Re: [R] How to restore workspace from .RDataTmp?

2006-01-09 Thread Petr Pikal
Hi See http://finzi.psych.upenn.edu/R/Rhelp02a/archive/63390.html There is not much to do in such a case. Maybe only to use some binary editor. Recommendation: do not use .Rdata file for storing data Cheers Petr On 9 Jan 2006 at 10:26, Helene Wagner wrote: Date sent: Mon,

Re: [R] repeat { readline() }

2006-01-09 Thread justin bem
--- Henrik Bengtsson [EMAIL PROTECTED] a écrit : Hi. Using Rterm v2.2.1 on WinXP, is there a way to interrupt a call like repeat { readline() } without killing the Command window? Ctrl+C is not interrupting the loop: To interupt the loop add and condition for a break like this :

Re: [R] Wikis for R

2006-01-09 Thread Drew
Frank uses the term hierarchical keyword organization which I agree is a good way to organize a system designed to help users. In fact, this is one reason why I like the R graphics gallery which allows one to quickly find a particular type of plot based on keyword, examine the plot to see if it's

[R] (no subject)

2006-01-09 Thread Erin Hodgess
Dear R People: I am trying to build a package (yet again!) I have both PCTex and WinEdt. I want the *.tex files to use WinEdt. How should I set that, please? Just in the path? Also, where would I get Rd.sty, please? Thanks, R Version 2.2.1 Windows Sincerely, Erin Hodgess Associate Professor

Re: [R] Suggestion for big files [was: Re: A comment about R:]

2006-01-09 Thread François Pinard
[hadley wickham] [François Pinard] Selecting a sample is easy. Yet, I'm not aware of any SQL device for easily selecting a _random_ sample of the records of a given table. On the other hand, I'm no SQL specialist, others might know better. There are a number of such devices, which tend to

[R] two y-axis in xy-plot

2006-01-09 Thread Antje Schüle
Hi there, I am wondering if it is possible to do an xyplot with two y-axes. I'd like to print two parameters in a time series but they both have different scales. Which parameter in xyplot can I add to achieve this result? Thanks a lot for any help. Antje [[alternative

Re: [R] A comment about R:

2006-01-09 Thread Uwe Ligges
François Pinard wrote: [Uwe Ligges] François Pinard wrote: [David Forrest] [...] A few end-to-end tutorials on some interesting analyses would be helpful. I'm in the process of learning R. While tutorials are undoubtedly very useful, and understanding that working and studying

Re: [R] Wikis etc.

2006-01-09 Thread Michael Dewey
At 20:12 08/01/06, Jack Tanner wrote: Philippe's idea to start a wiki that grows out of the content on http://zoonek2.free.fr/UNIX/48_R/all.html is really great. Here's why. My hypothesis is that the basic reason that people ask questions on R-help rather than first looking elsewhere is that

Re: [R] wicked wikis for R

2006-01-09 Thread Jean-Christophe BOUETTE
From: Arin Basu [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Date: 8 Jan 2006 19:18:17 - Subject: [R] wicked wikis for R Message: 41 Date: Sun, 08 Jan 2006 13:52:33 +1100 From: paul sorenson [EMAIL PROTECTED] Subject: Re: [R] Wikis etc. To: Frank E Harrell Jr [EMAIL PROTECTED],

Re: [R] Suggestion for big files [was: Re: A comment about R:]

2006-01-09 Thread r . ghezzo
I found Reservoir-Sampling algorithms of time complexity O(n(1+log(N/n))) by Kim-Hung Li , ACM Transactions on Mathematical Software Vol 20 No 4 Dec 94 p481-492. He mentions algorithm Z and K and proposed 2 improved versions alg L and M. Algorith L is really easy to implement but relatively slow,

Re: [R] [R-pkgs] sudoku

2006-01-09 Thread roger bos
As far as generating a sudoku, it can't be too hard because I have a program on my cell phone that does it with a size less than 325K. I don't know the best way to generate these, but one way I was thinking of was starting with a filled up one then randomize the columns and rows. Then make some

Re: [R] wicked wikis for R

2006-01-09 Thread Frank E Harrell Jr
Jean-Christophe BOUETTE wrote: From: Arin Basu [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Date: 8 Jan 2006 19:18:17 - Subject: [R] wicked wikis for R Message: 41 Date: Sun, 08 Jan 2006 13:52:33 +1100 From: paul sorenson [EMAIL PROTECTED] Subject: Re: [R] Wikis etc. To: Frank E Harrell Jr

[R] decide between polynomial vs ordered factor model (lme)

2006-01-09 Thread Leo Gürtler
Dear alltogether, two lme's, the data are available at: http://www.anicca-vijja.de/lg/hlm3_nachw.Rdata explanations of the data: nachw = post hox knowledge tests over 6 measure time points (= equally spaced) zeitn = time points (n = 6) subgr = small learning groups (n = 28) gru = 4 different

[R] how to run the data editor by command?Thanks!

2006-01-09 Thread 刘加成
Thanks! -- Liu jcheng [[alternative HTML version deleted]] __ 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 run the data editor by command?Thanks!

2006-01-09 Thread ronggui
?fix ?edit 2006/1/9, 刘加成 [EMAIL PROTECTED]: Thanks! -- Liu jcheng [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

[R] How to use filled.contour(x,y,z) data for levelplot(z)?

2006-01-09 Thread Jan Verbesselt
Dear all, We used the following function to create a spatial plot of a raster image: filled.contour(xx,yy,zz, color = terrain.colors, nlevels=10, main=naamjaar, plot.axes = { contour(Xcoord/1000,Ycoord/1000,lim.data, nlevels = 4, col=4,drawlabels = T, axes = FALSE, frame.plot = FFALSE, add =

Re: [R] decide between polynomial vs ordered factor model (lme)

2006-01-09 Thread Dimitris Rizopoulos
I think that these models are not nested and thus the LRT produced by anova.lme() will not be valid; AIC and BIC could be more relevant. In terms of interpretability, I'd say that a model treating 'zeitn' as a factor is much easier to explain than a model with 4th order polynomial. I hope it

Re: [R] need palette of topographic colors similar to topo.colors ()

2006-01-09 Thread Tuszynski, Jaroslaw W.
I will second Roger's suggestion, colorRampPalette is a great function for creating your own palettes. For example, Matlab's jet palette (also available in fields package under peculiar name 'tim.colors') can be defined by: jet.colors = colorRampPalette(c(#7F, blue, #007FFF, cyan, #7FFF7F,

Re: [R] Looking for packages to do Feature Selection and Classifi cation

2006-01-09 Thread Tuszynski, Jaroslaw W.
Hi, You should also check my msc.features.select from caMassClass package. It has feature selection algorithm that I found useful in case of mass-spectra data. It performs individual feature selection and/or removes highly correlated neighbor features. Jarek -Original Message- From:

[R] trouble with extraction/interpretation of variance structure para meters from a model built using gnls and varConstPower

2006-01-09 Thread Rand, Hugh
I have been using gnls with the weights argument (and varConstPower) to specify a variance structure for curve fits. In attempting to extract the parameters for the variance model I am seeing results I don't understand. When I simply display the model (or use summary on the model), I get what seem

Re: [R] Wikis etc.

2006-01-09 Thread Thomas Lumley
On Mon, 9 Jan 2006, Michael Dewey wrote: Further to that I feel that (perhaps because they do not like to blow their own trumpet too much) the authors of books on R do not stress how much most questioners could gain by buying and reading at least one of the many books on R. When I started I

Re: [R] decide between polynomial vs ordered factor model (lme)

2006-01-09 Thread Douglas Bates
On 1/9/06, Leo Gürtler [EMAIL PROTECTED] wrote: Dear alltogether, two lme's, the data are available at: http://www.anicca-vijja.de/lg/hlm3_nachw.Rdata explanations of the data: nachw = post hox knowledge tests over 6 measure time points (= equally spaced) zeitn = time points (n = 6)

[R] How to use filled.contour(x,y,z) data for levelplot(z)?

2006-01-09 Thread Edzer J. Pebesma
Jan, libary(lattice) rownames(zz) - xx colnames(zz) - yy levelplot(zz) will not work -- levelplot needs a data frame with zz, xx and yy values next to each other, so read about data.frame(), rep() and as.vector(zz); you will need the each= argument for one of xx or yy. Sounds like you'd be

Re: [R] Wikis etc.

2006-01-09 Thread Gabor Grothendieck
On 1/9/06, Thomas Lumley [EMAIL PROTECTED] wrote: On Mon, 9 Jan 2006, Michael Dewey wrote: Further to that I feel that (perhaps because they do not like to blow their own trumpet too much) the authors of books on R do not stress how much most questioners could gain by buying and reading

Re: [R] [R-pkgs] sudoku

2006-01-09 Thread Henrik Bengtsson
I replied all to the original message, but since that was to [EMAIL PROTECTED] it might not have gone out there, did it? If not, below is my reply again. [You have restrict the randomization so that you permute within and between block rows/columns.] /Henrik Original Message

Re: [R] Missing value representation in Excel before extraction to R with RODBC

2006-01-09 Thread Fredrik Lundgren
Dear list, Well, those columns in Excel that starts with NA (actually 8 NA's in my case) is imported as all NA in R but if the columns starts with at least 3 cells with values (i.e not NA) the are imported correctly to R. When as.is=TRUE is used a simular conversion takes place but now as all

Re: [R] two y-axis in xy-plot

2006-01-09 Thread Deepayan Sarkar
On 1/9/06, Antje Schüle [EMAIL PROTECTED] wrote: Hi there, I am wondering if it is possible to do an xyplot with two y-axes. I'd like to print two parameters in a time series but they both have different scales. Which parameter in xyplot can I add to achieve this result? The answer

[R] warning message from nlme

2006-01-09 Thread Chia, Yen Lin
Hi all, I tried to do a variance components using nlme, but I got the following warning mesage # not meaningful for factors in: Ops.factor(y[revOrder], Fitted) ## Can someone point

Re: [R] warning message from nlme

2006-01-09 Thread Chia, Yen Lin
Hi all, Sorry for the sloppy description of problem. I have a dataset called dense. I want to decompose the variability/variation into different components such as wafer, axis, orientation and data. These variables are all categorical data. I converted axis, orientation and location into

Re: [R] Wikis etc.

2006-01-09 Thread Leif Kirschenbaum
To avoid spam on the R wikis pages: If we assume that anyone who we would want to be empowered to modify the R wiki pages is an R-user, would it be possible to somehow incorporate a function into the next R release which provides a user with a key/password? A new R function would generate a

Re: [R] Wikis etc.

2006-01-09 Thread David Forrest
On Mon, 9 Jan 2006, Gabor Grothendieck wrote: On 1/9/06, Thomas Lumley [EMAIL PROTECTED] wrote: On Mon, 9 Jan 2006, Michael Dewey wrote: Further to that I feel that (perhaps because they do not like to blow their own trumpet too much) the authors of books on R do not stress how

[R] R newbie example code question

2006-01-09 Thread Mark Leeds
Sometimes I print out a package and read about it and there are sometimes nice examples that I would like to run myself. Is there a way to bring them into R from the package or are they only meant to be typed in manually ? If manual is the only way, that's fine. I was just checking whether there

Re: [R] Wikis etc.

2006-01-09 Thread Jack Tanner
Michael Dewey wrote: At 20:12 08/01/06, Jack Tanner wrote: My hypothesis is that the basic reason that people ask questions on R-help rather than first looking elsewhere is that looking elsewhere doesn't get them the info they need. People think in terms of the tasks they have to do. The

Re: [R] R newbie example code question

2006-01-09 Thread Uwe Ligges
Mark Leeds wrote: Sometimes I print out a package and read about it and there are sometimes nice examples that I would like to run myself. Is there a way to bring them into R from the package or are they only meant to be typed in manually ? If manual is the only way, that's fine. I

Re: [R] R newbie example code question

2006-01-09 Thread Mark Leeds
wow. example() was exactly what I wanted. you all have made all these incredible facilities for a new person. thanks. mark -Original Message- From: Uwe Ligges [mailto:[EMAIL PROTECTED] Sent: Monday, January 09, 2006 1:30 PM To: Mark Leeds Cc: R-Stat Help Subject: Re:

Re: [R] R newbie example code question

2006-01-09 Thread John Sorkin
Mark, I am not user where you find your reading material, but if it is online, perhaps you can copy and paste it into an R session. John John Sorkin M.D., Ph.D. Chief, Biostatistics and Informatics Baltimore VA Medical Center GRECC and University of Maryland School of Medicine Claude Pepper OAIC

Re: [R] repeat { readline() }

2006-01-09 Thread Luke Tierney
Use tryCatch; try behaves the way it does with respect to interrupts for historical compatibility. luke On Sun, 8 Jan 2006, hadley wickham wrote: On a related note, does anyone know how to exit: repeat { try( readline() ) } The try block captures Ctrl-C. Hadley

Re: [R] warning message from nlme

2006-01-09 Thread Doran, Harold
Yen Lin: I'd like to try and offer a little help, but I'm still unclear on your data structure and problem. You say, they are all categorical variables. But, does this apply also to your dependent variable? If so, lme is the wrong function to use. You also say you want to decompose tha variation

Re: [R] Wikis etc.

2006-01-09 Thread Gabor Grothendieck
On 1/9/06, Jack Tanner [EMAIL PROTECTED] wrote: Michael Dewey wrote: At 20:12 08/01/06, Jack Tanner wrote: My hypothesis is that the basic reason that people ask questions on R-help rather than first looking elsewhere is that looking elsewhere doesn't get them the info they need. People

[R] product of multidimensional tables

2006-01-09 Thread Nachiketa Sahoo
Hi, I am trying to carry out the product between two multi dimensional tables, e.g. A with dim = c(2,2,3,4) and B with dim = c(2,3,4). So, I want to outer multiply each 3x4 table in A[i,j,,] with B[k,,] to get a table C of dim = c(2,2,3,4,3,4). This arises in scenario of conditional probability

[R] kein Betreff

2006-01-09 Thread stefan semmelring
Hallo, I´m trying to find out how I can start WinEdt always directly when R is started. Does anybody know how to do so? I tried to find it out by myself but had no fortune. Maybe you have to compile (?) a certain file. (I am usind R in the latest version on Win XP) Thank You Stefan

[R] automatic start of RWinEdt

2006-01-09 Thread stefan semmelring
stefan semmelring [EMAIL PROTECTED] schrieb am 09.01.06 21:31:01: Hallo, I´m trying to find out how I can start WinEdt always directly when R is started. Does anybody know how to do so? I tried to find it out by myself but had no fortune. Maybe you have to compile (?) a

[R] brown, durbin , evans ( 1975 )

2006-01-09 Thread Mark Leeds
Does anyone know where I can get R code for plotting the Brown , Durbin and Evans cumsum procedure ( 1975 ) ? I wrote my own code but I am a little worried that my confiodence bands may not be correct ( I find the formula in the original paper confusing and S+Finmetrics has a formula but that

Re: [R] paste tab and print

2006-01-09 Thread vincent
Prof Brian Ripley a écrit : cat(info, \n) Thank you very much. It works. __ 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

[R] bug in either glmmPQL or lme/lmer

2006-01-09 Thread Jack Tanner
I know it's conventional to report bugs to the maintainer, but I'm not sure which package actually contains this bug(s), so I apologize for sending this to the list at large. I see the bug under both R 2.1.1, and R 2.2.1. (I sent a related message a while ago, but this one has more detail.)

Re: [R] Wikis etc.

2006-01-09 Thread J Dougherty
On Monday 09 January 2006 11:31, Gabor Grothendieck wrote: . . . I certainly was not disparaging books. I said _in addition to_ books, not _insted of_. The reason I pointed this out is that I think most people already read the books. What many people don't do as far as can tell is read

Re: [R] wicked wikis for R

2006-01-09 Thread J Dougherty
On Monday 09 January 2006 05:16, Jean-Christophe BOUETTE wrote: From: Arin Basu [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Date: 8 Jan 2006 19:18:17 - Subject: [R] wicked wikis for R Message: 41 Date: Sun, 08 Jan 2006 13:52:33 +1100 From: paul sorenson [EMAIL PROTECTED]

Re: [R] automatic start of RWinEdt

2006-01-09 Thread ronggui
the readme file tells what you should do: - In R use something like (for example in your .Rprofile): options(editor=\c:/program files/winedt team/winedt/winedt\ -c=\R-WinEdt-edit\ -e=r.ini -V) options(pager=\c:/program files/winedt team/winedt/winedt\ -C=\R-WinEdt\ -e=r.ini -V)

[R] How to plot legend to the margin area of the graph?

2006-01-09 Thread Vincent Deng
Dear R-helpers, When plotting a graph, what command should I use to mark legend to the margin area of that graph? __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

[R] lmer with nested/nonnested groupings?

2006-01-09 Thread Andrew Gelman
I'm trying to figure out how to use lmer to fit models with factors that have some nesting and some non-nested groupings. For example, in this paper: http://www.stat.columbia.edu/~gelman/research/published/parkgelmanbafumi.pdf we have a logistic regression of survey respondents' political

[R] wiki in Hamburg set read-only

2006-01-09 Thread Detlef Steuer
Hi, to clear up the situation regarding wikis a bit and since, whatever happens, Philippe's wiki is superior, I decided to set the old wiki read-only. A visitor will be asked to visit the new wiki and add contents there. Good luck Philippe! Your plans sound very nice! The new wiki should get

Re: [R] brown, durbin , evans ( 1975 )

2006-01-09 Thread Achim Zeileis
Mark: Does anyone know where I can get R code for plotting the Brown , Durbin and Evans cumsum procedure ( 1975 ) ? Via library(strucchange) P.S : Strucchange looks like a great package but it would take me way longer than I have to only partially understand the theory behind what is

Re: [R] How to plot legend to the margin area of the graph?

2006-01-09 Thread Uwe Ligges
Vincent Deng wrote: Dear R-helpers, When plotting a graph, what command should I use to mark legend to the margin area of that graph? Example: plot(1:10) par(xpd=TRUE) legend(8,11.5,Hello World) Uwe Ligges __ R-help@stat.math.ethz.ch