Re: [R] search path question

2007-05-29 Thread David Forrest
. -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804)642-0662h http://maplepark.com/~drf5n/ __ R-help@stat.math.ethz.ch

[R] Partitioning a kde2d into equal probability areas

2007-05-04 Thread David Forrest
not sure where to look. Thanks for your time, Dave -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804)642-0662h http://maplepark.com/~drf5n

Re: [R] Random Number Generator of Park and Miller

2007-04-25 Thread David Forrest
On Tue, 24 Apr 2007, gracezhang wrote: Hi, I failed to search for R package providing random number generator of Park and Miller. Anyone know any R package supporting this kind of function? rng.lcg-function(x,p1=16807,p2=0,N=2147483647){(x*p1+p2)%%N} Dave -- Dr. David Forrest [EMAIL

Re: [R] graphs superimposed on pictures?

2007-04-11 Thread David Forrest
-- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804)642-0662h http://maplepark.com/~drf5n/ __ R-help@stat.math.ethz.ch mailing

Re: [R] Using nnet

2007-03-27 Thread David Forrest
,] -0.4996929 Could someone give me an advice ? I searched everywhere I can but nothing found. ?nnet especially: linout: switch for linear output units. Default logistic output units. Thanks a lot. Dave -- Dr. David Forrest [EMAIL PROTECTED

Re: [R] reading BMP into R

2007-03-12 Thread David Forrest
On Mon, 12 Mar 2007, Milton Cezar Ribeiro wrote: Hi R-gurus How can I read my bmp files into R? RSiteSearch('bmp') system('convert my.bmp my.pnm') library(pixmap) ?read.pnm Dave -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED

Re: [R] color quantization / binning a variable into levels

2007-02-21 Thread David Forrest
() or image() plot(expand.grid(1:87,1:61), col=c.ramp[findInterval(volcano,c.brks,all.inside=TRUE)], pch='.',cex=10) Dave On Wed, 22 Feb 2006, Adelchi Azzalini wrote: On Tue, 21 Feb 2006 11:08:38 -0600 (CST), David Forrest wrote: perhaps binning of package sm is what you want best wishes

Re: [R] Start and Restart R over SSH

2007-02-19 Thread David Forrest
. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804)642-0662h http://maplepark.com/~drf5n/ __ R-help@stat.math.ethz.ch mailing list https

Re: [R] feedback on writing r extensions

2007-01-16 Thread David Forrest
demonstrate the benefits of R's open source philosophy. Thanking you for offering feedback, Thank you. Dave -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804)642-0662h

Re: [R] feedback on writing r extensions

2007-01-16 Thread David Forrest
. Perhaps it would be feasible to make an RSourceSearch() function (like RSiteSearch()) that could recognize things like documentation, functions, and internals and direct users to the source code. Dave On 1/16/07, David Forrest [EMAIL PROTECTED] wrote: On Tue, 16 Jan 2007, Martin Maechler

Re: [R] zero margin / marginless plots (in lattice?)

2007-01-12 Thread David Forrest
On Thu, 11 Jan 2007, David Forrest wrote: Thanks. The xaxs|yaxs='i' works well for the base graphics. Is there an additional parameter in play for lattice graphics? The closest I could gotten is the below which still leaves a bit of a margin: xy-data.frame(x=c(0,1,1,0,0),y=c(0,1,0,0,1

Re: [R] zero margin / marginless plots (in lattice?)

2007-01-12 Thread David Forrest
On Thu, 11 Jan 2007, David Forrest wrote: Thanks. The xaxs|yaxs='i' works well for the base graphics. Is there an additional parameter in play for lattice graphics? The closest I could gotten is the below which still leaves a bit of a margin: xy-data.frame(x=c(0,1,1,0,0),y=c(0,1,0,0,1

Re: [R] zero margin / marginless plots (in lattice?)

2007-01-11 Thread David Forrest
),type='l',xlab=NULL,ylab=NULL) Dave On Wed, 10 Jan 2007, Marc Schwartz wrote: On Wed, 2007-01-10 at 21:18 -0600, David Forrest wrote: Hi, I'd like to produce a marginless or zero margin plot so that the pixel coordinates represent the mathematics. xy-data.frame(x=c(0,1,1,0,0),y=c(0,1,0,0,1

[R] zero margin / marginless plots

2007-01-10 Thread David Forrest
a 10 pixel margin around these lines, and I'm not sure what parameter or function is controlling this offset. Any hints? Thanks for your time, Dave -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804

[R] Does strptime(...,tz=GMT) do anything?

2007-01-08 Thread David Forrest
=EST) function? Thanks for your time, Dave -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804)642-0662h http://maplepark.com/~drf5n

Re: [R] acos(0.5) == pi/3 FALSE

2006-09-18 Thread David Forrest
') , ?'==' for an explanation, or 'abs(acos(0.5) - pi/3) 1e-9' for a solution. Dave -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804)642-0662h http://maplepark.com/~drf5n

[R] color quantization / binning a variable into levels

2006-02-21 Thread David Forrest
time, Dave -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804)642-0662h http://maplepark.com/~drf5n/ __ R-help@stat.math.ethz.ch

Re: [R] Wikis etc.

2006-01-09 Thread David Forrest
(), and the mailing lists. Dave -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804)642-0662h http://maplepark.com/~drf5n/ __ R

Re: [R] Wikis for R

2006-01-08 Thread David Forrest
answer quality of the email list. Dave -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804)642-0662h http://maplepark.com/~drf5n

Re: [R] A comment about R:

2006-01-04 Thread David Forrest
how to do several things. Adapting other tutorials or extended problems, like the Stata session, to R would give additional entry points. A few end-to-end tutorials on some interesting analyses would be helpful. Any volunteers? Dave -- Dr. David Forrest [EMAIL PROTECTED

Re: [R] Element-by-element multiplication operator?

2005-11-09 Thread David Forrest
-project.org/posting-guide.html -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804)642-0662h http://maplepark.com/~drf5n/ __ R

Re: [R] adding 1 month to a date

2005-10-12 Thread David Forrest
of the stated month? seq(as.Date(2004-02-01), by = month, length = 14)-1 [1] 2004-01-31 2004-02-29 2004-03-31 2004-04-30 2004-05-31 Dave -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804)642-0662h

Re: [R] Call SAS from R

2005-08-24 Thread David Forrest
On Wed, 24 Aug 2005, Shin, David wrote: ... system(c:\\program files\\sas institute\\v8\\sas.exe test) Warning message: c:\program not found Escape the spaces too. It is trying to run the program c:\program or c:\progra~1\sas Dave -- Dr. David Forrest [EMAIL PROTECTED

Re: [R] Drawing information-rich, Tufte style scatterplots and axes

2005-06-16 Thread David Forrest
. If anyone has any comments or suggestions I would be very interested. I posted a link to it on the GraphGallery page of the R Wiki: http://fawn.unibw-hamburg.de/cgi-bin/Rwiki.pl?GraphGallery Why not make it a package? Dave -- Dr. David Forrest [EMAIL PROTECTED

[R] Plotting quiver vector tensor arrows 2d field data

2005-06-14 Thread David Forrest
] - u[3])) } u - matrix(rnorm(100),nrow=10) v - matrix(rnorm(100),nrow=10) quiver(u,v) I added these functions as an example to the Wiki: http://fawn.unibw-hamburg.de/cgi-bin/Rwiki.pl?GraphGallery http://fawn.unibw-hamburg.de/cgi-bin/Rwiki.pl?QuiverPlot Thanks for your time, Dave -- Dr. David

Re: [R] How to plot more than 3 sets in Venn Diagrams?

2005-06-10 Thread David Forrest
a pretty 5-set radially symmetric Venn diagram on http://www.combinatorics.org/Surveys/ds5/VennSymmEJC.html Dave -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804)642-0662h

Re: [R] Plot/manage spatial boundary data

2005-06-10 Thread David Forrest
On Fri, 10 Jun 2005, Roger Bivand wrote: On Thu, 9 Jun 2005, David Forrest wrote: I have some disconnected boundary data from a finite element ocean model and I'd like to make a plot. Maptools looks promising, but since my data is not in a shapefile or a map, I'm unclear on what

[R] Plot/manage spatial boundary data

2005-06-09 Thread David Forrest
30 different islands. Maptools seems devoted to shapefiles, and it is unclear how to create 'polylists'. Is there a good way to manage and graph data defined on irregular grids? Dave -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED

Re: [R] R Graph Gallery : categorization of the graphs

2005-06-09 Thread David Forrest
On Tue, 7 Jun 2005, David Forrest wrote: ... http://fawn.unibw-hamburg.de/cgi-bin/Rwiki.pl?UsePictures This page demonstrates the use of pictures and the use of a public image server for hosting graphics files. Also, there's a page: http://fawn.unibw-hamburg.de/cgi-bin/Rwiki.pl

Re: [R] R Graph Gallery : categorization of the graphs

2005-06-07 Thread David Forrest
). Counterexample: http://fawn.unibw-hamburg.de/cgi-bin/Rwiki.pl?Tips_And_Examples Dave -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804)642-0662h http://maplepark.com

Re: [R] R Graph Gallery : categorization of the graphs

2005-06-07 Thread David Forrest
On Tue, 7 Jun 2005, Dan Bolser wrote: On Tue, 7 Jun 2005, David Forrest wrote: On Tue, 7 Jun 2005, Dan Bolser wrote: ... I agree, but its hard to get people contributing without something centralized (some central autohrity). The problem with the existing wiki http://fawn.unibw

Re: [R] R Graph Gallery : categorization of the graphs

2005-06-07 Thread David Forrest
of pictures and the use of a public image server for hosting graphics files. Dave -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804)642-0662h http://maplepark.com/~drf5n

Re: [R] R Graph Gallery : categorization of the graphs

2005-06-06 Thread David Forrest
fails me at understanding your question. I don't get stuck anywhere. Romain Perhaps the javascript menu on the left does not function on some browsers. Dave -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED

Re: [R] R Graph Gallery : categorization of the graphs

2005-06-06 Thread David Forrest
) it could be identified with multiple keywords and dynamically listed in each of the sub-galleries. Dave -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804)642-0662h http

Re: [R] hex format

2005-04-07 Thread David Forrest
){} # such that: zzinv(257) #or zzinv(c(0,1,1)) #000101 Is zzinv() the operation you need? Dave -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804)642-0662h http

Re: [R] (no answer)

2005-04-01 Thread David Forrest
(string){ RURL = http://www.google.com/u/newcastlemaths; RSearchURL = paste(RURL, ?q=, string, sep = ) browseURL(RSearchURL) return(invisible(0)) } help.start() help.search.google(brain+surgery) help.search.archive(brain+surgery) Dave -- Dr. David Forrest [EMAIL PROTECTED

[R] sub('^','var',1:3) produces unexpected results

2005-03-22 Thread David Forrest
Hi, According to help(sub), the ^ should match the zero-length string at the beginning of a string: sub('^','var',1:3) # 1 2 3 sub('$','var',1:3) # 1var 2var 3var # This generates what I expected from the first case: sub('^.','var',11:13) # var1 var2 var3 Dave -- Dr. David Forrest [EMAIL

Re: [R] US 2004 Elections map

2004-12-09 Thread David Forrest
them? I think these sorts of things could help demonstrate and disseminate the graphics abilities of R. Dave -- Dr. David Forrest [EMAIL PROTECTED](804)684-7900w [EMAIL PROTECTED] (804)642-0662h

Re: [R] what about a mascot ?

2004-12-08 Thread David Forrest
On Wed, 8 Dec 2004, internautem wrote: My friend Veslot proposed me the Raven ! http://www.teteamodeler.com/allopass/images/corbeau.jpg As a matter of fact the intelligence of this bird is comparable to one of a monkey, although its brain is close to a reptile brain. R is quite the same :

RE: [R] The hidden costs of GPL software?

2004-11-23 Thread David Forrest
On Tue, 23 Nov 2004, Philippe Grosjean wrote: Patrick Burns wrote: [] No, I'm not volunteering to build the system. Too bad! ;-) Indeed, the idea to index tens of thousands of functions could not be appealing to many of us! Why not to consider to test such ideas at the package

Re: [R] help! a urgent question

2004-11-19 Thread David Forrest
On Fri, 19 Nov 2004, an ying wrote: Dear Sir/Madam, I am doing a project related to R. However, it is always difficult find some R functions. The R user guide seems not complete. Is there any free document about all R functions ? Who knows ? please help me. My email is [EMAIL PROTECTED]

Re: [R] The hidden costs of GPL software?

2004-11-18 Thread David Forrest
On Wed, 17 Nov 2004, Mike Prager wrote: ... Using CLI software, an infrequent user has trouble remembering the known functions needed and trouble finding new ones (especially as that user gets older). What might help is an added help facility more oriented towards tasks, rather than

Re: [R] The hidden costs of GPL software?

2004-11-18 Thread David Forrest
On Thu, 18 Nov 2004, Frank E Harrell Jr wrote: ... ... I second all of that. What you are describing Mike could be done with a community-maintained wiki, with easy to add hyperlinks to other sites. There is a wiki at http://fawn.unibw-hamburg.de/cgi-bin/Rwiki.pl but it doesn't seem to get

Re: [R] Random number

2004-10-27 Thread David Forrest
On Wed, 27 Oct 2004, Kunal Shetty wrote: thank you Sundar,Andy, Partha for your prompt reply. as for the %*% is matrix multiplication problem sunder here is a sample of what i want... x - rnorm(100,17,24) # X values y - rnorm(100,7,11) # Y values # since X and Y values are

Re: [R] R-(wiki)-pedia?

2004-10-08 Thread David Forrest
On Fri, 8 Oct 2004, Barry Rowlingson wrote: Here's a function for searching the Rwiki from R: rwiki.search - function(string){ RwikiURL=http://fawn.unibw-hamburg.de/cgi-bin/Rwiki.pl; RwikiSearchURL=paste(RwikiURL(),?search=,string,sep='') browseURL(RwikiSearchURL)

[R] Removing constants from a data frame

2004-09-17 Thread David Forrest
Suppose I have x-data.frame(v1=1:4, v2=c(2,4,NA,7), v3=rep(1,4), v4=LETTERS[1:4],v5=rep('Z',4)) or a much larger frame, and I wish to test for and remove the constant numeric columns. I made: is.constant-function(x){identical(min(x),max(x))} and apply(x,2,is.constant) # Works for

Re: [R] Plotting irregular grid as image or persp

2004-09-10 Thread David Forrest
Thanks Deepanyan, On Sat, 28 Aug 2004, Deepayan Sarkar wrote: ... Yes, I think rgl would be the right tool for this. Even apart from the 3d acceleration issues, one of the problems with getting this in R would be that R doesn't do raster graphics, and I don't think hidden surface algorithms

Re: [R] How to draw an observation uniformly from a given dataset?

2004-09-08 Thread David Forrest
On Wed, 8 Sep 2004 [EMAIL PROTECTED] wrote: Hi all, I have two questions stated below: 1. How to draw an observation uniformly from a given data? For example, I have a dataset (or dataframe) with 10 observations (with a set of variables) and I want to uniformly select an observation from

Re: [R] Reading SAS data into R

2004-08-27 Thread David Forrest
On Fri, 27 Aug 2004, Sundar Dorai-Raj wrote: Søren Højsgaard wrote: Dear all, One of my students (whom I am trying to convince to use R) wants to get a fairly large SAS dataset into R (about 150mB). An obvious and simple thing she tried was to write the dataset as a .csv-file and

[R] Plotting irregular grid as image or persp

2004-08-27 Thread David Forrest
Hi, I have an array of 2d node locations and an array triangles, and would like to plot something like a image or persp. An example of doing it with rgl is: library(ncdf) library(rgl) # wget http://www.maplepark.com/~drf5n/extras/teapot.nc teapot-open.ncdf(teapot.nc)

[R] Q: how to submit documentation patches?

2004-08-25 Thread David Forrest
I don't want to gripe here, but I would like to know the best method for submitting suggestions and patches to the documentation. It looks like for many help items, we need to track from the html file which help.search(*)/help(*) presents, back to the authoritiative documentation file from which

Re: [R] Bug in colnames of data.frames?

2004-08-17 Thread David Forrest
On Tue, 17 Aug 2004, Arne Henningsen wrote: Thank you for all your answers! I agree with you that it is not a bug. My mistake was that I thought that a data frame is similar to a matrix, but as ?data.frame says they ... share many of the properties of matrices and of lists. ... I think the

[R] push/pop on a stack

2003-02-25 Thread David Forrest
Is there a package for stacks with pushing and popping? I'd really like to do something like push(par(no.readonly=TRUE)) some stuff par(pop()) It seems like it wouldn't be difficult, and that someone may have already implemented a set of stack functions, and I wouldn't like to duplicate

Re: [R] postgres

2003-02-11 Thread David Forrest
On 11 Feb 2003, Joshua Gramlich wrote: Is anyone using R with postgres? I'd like to do so, but cannot seem to find any reasonable explanation of how to do so. Joshua Gramlich Chicago, IL library(RPgSQL) # It isn't in an obvious place: #