[R] Clipboard under Linux/Unix

2004-11-19 Thread Philippe Grosjean
Hello, This may be a trivial question, but I don't find the answer in R online help. Under Windows, I can copy/paste to the clipboard using readClipboard()/writeClipboard(), or something like cat(..., file = clipboard). Are there equivalent function for other platforms? Best, Philippe Grosjean

Re: [R] how to get to interesting part of pattern match

2004-11-19 Thread Peter Wolf
Vadim Ogranovich wrote: Hi, I am looking for a way to extract an interesting part of the match to a regular expression. For example the pattern [./](*.) matches a substring that begins with either . or / followed by anything. I am interested in this anything w/o the . or / prefix. If say I match

Re: [R] Clipboard under Linux/Unix

2004-11-19 Thread Prof Brian Ripley
On Fri, 19 Nov 2004, Philippe Grosjean wrote: This may be a trivial question, but I don't find the answer in R online help. Under Windows, I can copy/paste to the clipboard using readClipboard()/writeClipboard(), or something like cat(..., file = clipboard). Are there equivalent function for other

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

2004-11-19 Thread Philippe Grosjean
John Fox wrote: [...] (sorry, this is long mail, and I want to comment only details) By the way, if there were something I could wish for here it would be a slightly broader set of Tk widgets to be included with the Tcl/Tk that installs with R for Windows, since using widgets outside of

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

2004-11-19 Thread Bill Northcott
If the GPL were not so tight on this point, someone could commercialize a GUI for R without having to offer their source code under the GPL. There is nothing in GPL to stop a commercial GUI for R. Have a look at what Apple do. They have a complete commercial GUI and numerous applications

RE: [R] Tools for data preparation?

2004-11-19 Thread Marc Mamin
Hello David, I had the same problem with log files containing many fields separated by the | character. My task was to extract parts of some fields with regular expression and normalize the result to compact them (using R functions factor and table) To reduce the data size, I first split the

Re: [R] how to rewrite this without a loop ?

2004-11-19 Thread Stijn Lievens
Thomas Lumley wrote: On Thu, 18 Nov 2004, Stijn Lievens wrote: code add.fun - function(perf.data) { ss - 0 for (i in 0:29) { ss - ss + cor(subset(perf.data, dataset == i)[3], subset(perf.data, dataset == i)[7], method = kendall) } ss} /code As one can see this function uses a

[R] More problems checking an R package

2004-11-19 Thread michael watson (IAH-C)
Hi I am having a few more miscellaneous problems when I run R CMD check on my package. All of the early stuff works OK. I get a WARNING at the checking S3 generic/method consistency stage, where it seems to think two of my fucntions are inconsistent with plot() (I don't understand why it thinks

RE: [R] Tools for data preparation?

2004-11-19 Thread Ted Harding
On 19-Nov-04 David Mitchell wrote: Hello list, I'm regularly in the position where I have to do a lot of data manipulation, in order to get the data I have into a format R is happy with. This manipulation would generally be in one of two forms: - getting data from e.g. text log files into

RE: [R] Clipboard under Linux/Unix

2004-11-19 Thread Ted Harding
On 19-Nov-04 Philippe Grosjean wrote: Hello, This may be a trivial question, but I don't find the answer in R online help. Under Windows, I can copy/paste to the clipboard using readClipboard()/writeClipboard(), or something like cat(..., file = clipboard). Are there equivalent function

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

2004-11-19 Thread Prof Brian Ripley
On Fri, 19 Nov 2004, Bill Northcott wrote: If the GPL were not so tight on this point, someone could commercialize a GUI for R without having to offer their source code under the GPL. There is nothing in GPL to stop a commercial GUI for R. Have a look at what Apple do. They have a

Re: [R] Where has the Debian respository gone?

2004-11-19 Thread Christoph Bier
Dirk Eddelbuettel schrieb am 19.11.2004 00:05 On Thu, Nov 18, 2004 at 08:21:04PM +, Chris Evans wrote: [...] Any chance I can be useful? Could I team up with someone who really knows what s/he is doing but doesn't use Debian stable and work this together? Let me know, I'd love to put

Re: [R] More problems checking an R package

2004-11-19 Thread Uwe Ligges
michael watson (IAH-C) wrote: Hi I am having a few more miscellaneous problems when I run R CMD check on my package. All of the early stuff works OK. I get a WARNING at the checking S3 generic/method consistency stage, where it seems to think two of my fucntions are inconsistent with plot() (I

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

2004-11-19 Thread Peter Dalgaard
John Fox [EMAIL PROTECTED] writes: I don't think that it would be hard (although it would be time-consuming) to produce a much broader extension, but the result (in my opinion) would be as dubiously useful as the GUIs for SAS or S-PLUS. Strategically, that might actually be a valid (and

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

2004-11-19 Thread Philippe Grosjean
Peter, You don't need the ActiveState Tcl distribution to add extensions. If you compile extensions yourself (and these extensions have a compatible license), then you have no problems... (well, almost! You must make sure those extensions compile correctly on all supproted platforms). This is

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

2004-11-19 Thread Philippe Grosjean
Peter Dalgaard wrote: [...] Strategically, that might actually be a valid (and valiant) design goal! From my limited experience with Rcmdr and SAS Analyst, I'd say that Rcmdr is almost there, just a few little niggles like not remembering values from the last time a form was filled in.

RE: [R] Tools for data preparation?

2004-11-19 Thread Liaw, Andy
My choices are (in the order of my preference): - use connections and readLines()/strsplit()/etc. in R to process the file a chunk at a time - use cut/paste/grep/etc., perhaps within pipe() in R - use awk, perhaps within pipe() in R - Python is my last resort, as I'm not familiar with it The

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

2004-11-19 Thread Peter Dalgaard
Philippe Grosjean [EMAIL PROTECTED] writes: Peter, You don't need the ActiveState Tcl distribution to add extensions. If you compile extensions yourself (and these extensions have a compatible license), then you have no problems... (well, almost! You must make sure those extensions compile

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

2004-11-19 Thread Mike Prager
At 09:45 PM 11/18/2004, John Fox wrote: [...] 6) As has been pointed out, e.g., by Duncan Murdoch, solving the function-locating problem is best done by a method or methods that automatically accommodate the growing and changing set of contributed packages on CRAN. Why not, as previously has been

Re: [R] Creating logical value from the difference of two absolute values

2004-11-19 Thread Douglas Bates
Nathan Leon Pace, MD, MStat wrote: Hi, Using R 2.0.1 on Mac g5 running Mac OS X 10.3.6. I would expect that abs(.7 - .5) = abs(.3 - .5) should be returned TRUE. Instead www - abs(.7 - .5) = abs(.3 - .5) www [1] FALSE Is this a result of floating point or the implementation of abs or something

[R] [R-pkgs] new package gsl, a wrapper for the Gnu Scientific Library

2004-11-19 Thread Robin Hankin
Dear list R package gsl is now on CRAN. This is a wrapper for the special functions of the Gnu Scientific Library (GSL). Functions include elliptic integrals, Airy functions, hypergeometric functions, and so on. Most functions optionally return error estimates. This library is a little odd in

[R] Legend

2004-11-19 Thread Losier, Randy J
I have recently converted from S-Plus (Dec Alpha) to R (Mandrake 10.0). The differences are subtle but in some cases not easily converted. My Splus Command plotting deck was over 1200 lines and R has simplified this down to 900 lines so far. I do a lot of mapping with polygons and I am trying to

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

2004-11-19 Thread Pfaff, Bernhard
Dear list member, this thread as well as the first one started by Philippe about the usefulness of a GUI is interesting and overwhelming alike. IMHO, it wittnesses the greatness and superiority of R compared to other statistical programming environments and programs: the core team and all people

[R] Building package on Linux and Windows

2004-11-19 Thread michael watson (IAH-C)
Hi OK, final stretch now, thank you to everyone who has helped! (hopefully) final question - what does R CMD build actually do that tar/gzip and WinZip do not? I have successfully used R CMD build to create a .tar.gz version of my package, which installs well and works under Linux - hurray! I

RE: [R] Building package on Linux and Windows

2004-11-19 Thread michael watson (IAH-C)
No need, got it now :-) Thanks M -Original Message- From: michael watson (IAH-C) Sent: 19 November 2004 14:06 To: [EMAIL PROTECTED] Subject: [R] Building package on Linux and Windows Hi OK, final stretch now, thank you to everyone who has helped! (hopefully) final question - what

[R] glm with Newton Raphson

2004-11-19 Thread Valeska Andreozzi
Hi, Does anyone know if there is a function to find the maximum likelihood estimates of glm using Newton Raphson metodology instead of using IWLS. Thanks Valeska Andreozzi Department of Epidemiology and Quantitative Methods FIOCRUZ -

[R] Question on panel corrected standard errors by Beck and Katz

2004-11-19 Thread Kihong Eom
Dear colleagues, I am looking for a program which can run OLS with panel corrected standard errors developed by Beck and Katz. Thanks for your help in advance. Kihong Eom, Ph.D. 539 Ross Hall Iowa State University Ames, IA 50011 __ [EMAIL PROTECTED]

[R] accessing the attributes of a list inside lapply()

2004-11-19 Thread Adrian Alexa
Hello R-users, I have the following problem, that I want to solve efficiently: I have a named list, for example: l - list(a = 1, b = 3, c = 'asd') l $a [1] 1 $b [1] 3 $c [1] asd I know that I can iterate through it using lapply() function, but I would also like to able to get the list

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

2004-11-19 Thread Siddique, Amer
my quick thought: R is a programming language and shouldn't be wrapped up in a GUI to serve the interests of those too complacent to learn to leverage its power. and to echo others: I feel an IDE approach with, say, a code editor and a hyperlinked help system with a richer set of examples is

Re: [R] glm with Newton Raphson

2004-11-19 Thread Roger D. Peng
There are some examples of how to approach this in Modern Applied Statistics with S, 4th ed. (chap. 16) by Venebles Ripley. It's not Newton-Raphson but I think the code can be adapted. -roger Valeska Andreozzi wrote: Hi, Does anyone know if there is a function to find the maximum likelihood

RE: [R] gibbs sampling for mixture of normals

2004-11-19 Thread Kahra Hannu
Matteo, have a look at http://www.mrc-bsu.cam.ac.uk/bugs/faqs/contents.shtml and BUGS http://www.mrc-bsu.cam.ac.uk/bugs/welcome.shtml. Hannu Kahra Progetti Speciali Monte Paschi Asset Management SGR S.p.A. Via San Vittore, 37 IT-20123 Milano, Italia Tel.: +39 02 43828 754 Mobile: +39 333

Re: [R] glm with Newton Raphson

2004-11-19 Thread Prof Brian Ripley
For canonical links they are the same thing (and the likelihood is log-concave), but in general NR is a poor optimizer without at least step-length adjustment. MASS4 p.445 has an example of using a general optimizer for logistic regression. On Fri, 19 Nov 2004, Valeska Andreozzi wrote: Does

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

2004-11-19 Thread John Fox
Dear Philippe, I was aware of your tcltk2 package and will likely use it (if the standard widget set distributed with R for Windows is not expanded) when it becomes cross-platform. Thanks for this. John John Fox Department of Sociology McMaster University

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

2004-11-19 Thread John Fox
Dear Peter, -Original Message- From: Peter Dalgaard [mailto:[EMAIL PROTECTED] Sent: Friday, November 19, 2004 5:46 AM To: John Fox Cc: [EMAIL PROTECTED] Subject: Re: [R] The hidden costs of GPL software? John Fox [EMAIL PROTECTED] writes: I don't think that it would be

[R] problem with usepackage{} in Sweave under Quantian

2004-11-19 Thread Andreas Quandt
dear expeRts, if i try to create a .tex file under Quantian 6.9.1 with sweave the command \usepackage{.../texmf/Sweave} will not added and the following compilation to a .pdf file failed. if i add the \usepackage line by myself all is going right. so what i am doing wrong because under mac os

[R] help! a urgent question

2004-11-19 Thread an ying
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] Thank you very much

[R] function 'vcov' for coxph in R 2.0.0

2004-11-19 Thread Lei Liu
Hi there, After I fitted a cox model, I used vcov to obtain the variance of the parameter estimate. It worked correctly in R 1.9.1. But it failed in R 2.0.0 and the error message is Error in vcov(cox.1) : no applicable method for vcov I don't know if it is a bug or there is some update on

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

2004-11-19 Thread Spencer Graves
My very dear Prof. Dalgaard: Peter Dalgaard wrote: Argh. Please stop poking at my guilty conscience Wrapping Tcl/Tk extensions as R packages has been on my wish list too for some time, ... You, of all people, should hardly have a guilty conscience about not doing enough on R! I, and

Re: [R] accessing the attributes of a list inside lapply()

2004-11-19 Thread Eric Lecoutre
Hi, What about: as.list(names(l)) [[1]] [1] a [[2]] [1] b [[3]] [1] c HTH, Eric At 15:59 19/11/2004, Adrian Alexa wrote: Hello R-users, I have the following problem, that I want to solve efficiently: I have a named list, for example: l - list(a = 1, b = 3, c = 'asd') l $a [1] 1 $b [1] 3 $c [1]

Re: [R] accessing the attributes of a list inside lapply()

2004-11-19 Thread Spencer Graves
Maybe I misunderstand your problem, but I wonder if you've considered names: l - list(a = 1, b = 3, c = 'asd') names(l) [1] a b c hope this helps. spencer graves p.s. I can't parse your lapply(l, get_attr). In R 1.9.1 and R 2.0.0 Patched, I get the following: lapply(l,

[R] 3d Map with bars

2004-11-19 Thread partha_bagchi
Apologies in advance for the question. I am trying to draw a map of the US as a surface plot so that I would be able to drop bars on the different states (something like Uwe Ligges' scatterplot3d example 4). I am not sure where to start looking for such a beast. If anyone has any pointers,

RE: [R] glm with Newton Raphson

2004-11-19 Thread John Fox
Dear Roger and Valeska, I have example that uses Newton-Raphson for logistic regression in my R and S-PLUS Companion that might be of help. It's in the chapter script at http://socserv.socsci.mcmaster.ca/jfox/Books/Companion/Ch8-script.txt (the function lreg). See also the notes at

[R] COURSE: Statistical Modelling - By Dr Bill Venables

2004-11-19 Thread Karen Richardson
Insightful are pleased to announce the following Course: Statistical Modelling - By Dr Bill Venables Dates: 9 - 11 February 2005 Place: Basingstoke, UK Hours: 09:00 - 17:00 Course Fees: Commercial - £1,400 + VAT, Academic - £800 + VAT Course Description: The course will

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

2004-11-19 Thread Michael Grant
I inadvertently directed this response to the R-Gui list this morning. To those receiving a double receipt, I give my apologies. My intended list was the R list. --- Duncan Murdoch [EMAIL PROTECTED] wrote: On Thu, 18 Nov 2004 03:24:01 -0800 (PST), Michael Grant [EMAIL PROTECTED] wrote:

[R] Plotting averages of y per x

2004-11-19 Thread Gregor GORJANC
Hello! I often plot average of y instead of all y values, since one can easily see the trend if there is to many points and/or x might be like 1, 2, 3, 4, 5, ... and you might get a cloud (which can also be informative) and/or columns of points. Anyway, learning with R i get stucked. I have

Re: [R] help! a urgent question

2004-11-19 Thread Spencer Graves
Have you tried ?help.search in R? Also, have you tried www.r-project.org - search - R site search? Finally, have you tried the posting guide! http://www.R-project.org/posting-guide.html;? hope this helps. spencer graves an ying wrote: Dear Sir/Madam, I am doing a project related to R. However,

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

2004-11-19 Thread David Lennartsson
Philippe Grosjean wrote: John W. Eaton wrote: On 17-Nov-2004, Philippe Grosjean [EMAIL PROTECTED] wrote: | - There is no possibility to make a commercial GUI for R (thanks to | the GPL), This is false. Please don't confuse commercial (Red Hat and SuSE GNU/Linux distributions are commercial

Re: [R] help! a urgent question

2004-11-19 Thread Marc Schwartz
On Fri, 2004-11-19 at 07:55 -0800, 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

Re: [R] help! a urgent question

2004-11-19 Thread Yves Magliulo
hi, you can download The R Reference Index contains all help files of the R standard and recommended packages in printable form at http://cran.r-project.org/doc/manuals/fullrefman.pdf you will find other Manuals at http://www.r-project.org/ have a nice week-end all. -- Yves Magliulo

Re: [R] function 'vcov' for coxph in R 2.0.0

2004-11-19 Thread Prof Brian Ripley
Your version of survival is out of date: please use update.packages(). On Fri, 19 Nov 2004, Lei Liu wrote: Hi there, After I fitted a cox model, I used vcov to obtain the variance of the parameter estimate. It worked correctly in R 1.9.1. But it failed in R 2.0.0 and the error message is Error

[R] CRAN problems

2004-11-19 Thread Kjetil Brinchmann Halvorsen
The area *Index of /bin/windows/contrib/2.1 (and also 2.0) **at the main CRAN site is at the moment empty' * -- Kjetil Halvorsen. Peace is the most effective weapon of mass construction. -- Mahdi Elmandjra __ [EMAIL PROTECTED] mailing list

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]

[R] Running sum

2004-11-19 Thread Sean Davis
I have vector X of length N that I want to have a running sum for (called Y). I just need max(Y). I do this with a for loop like so: Y - vector(length=N) Y[1] - X[1] for (i in 2:N) { Y[i] - Y[i-1]+X[i] } return(max(Y)) Is there a faster way to do this? Thanks, Sean

Re: [R] Performing regression using R C

2004-11-19 Thread Jim McLoughlin
Is it possible to perform OLS using C code? I am trying to optimize a n-period moving window OLS on a huge dataset hence was wondering if such a thing is possible. Ideally the solution that I am looking for would involve a C-code accepting two float arrays and returning back computed

Re: [R] help! a urgent question

2004-11-19 Thread Kjetil Brinchmann Halvorsen
Go to http://cran.r-project.org/ and find the contributed documentation section. Kjetil 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 ?

Re: [R] Plotting averages of y per x

2004-11-19 Thread Kjetil Brinchmann Halvorsen
Gregor GORJANC wrote: Hello! I often plot average of y instead of all y values, since one can easily see the trend if there is to many points and/or x might be like 1, 2, 3, 4, 5, ... and you might get a cloud (which can also be informative) and/or columns of points. Anyway, learning with R i

Re: [R] Running sum

2004-11-19 Thread Kjetil Brinchmann Halvorsen
Sean Davis wrote: I have vector X of length N that I want to have a running sum for (called Y). I just need max(Y). I do this with a for loop like so: Y - vector(length=N) Y[1] - X[1] for (i in 2:N) { Y[i] - Y[i-1]+X[i] } return(max(Y)) Is there a faster way to do

RE: [R] Running sum

2004-11-19 Thread Liaw, Andy
See cumsum: x - rnorm(10) cs - function(X) { + N - length(X) + Y - vector(length=N) + Y[1] - X[1] + for (i in 2:N) { +Y[i] - Y[i-1]+X[i] + } + return(max(Y)) + } cs(x) [1] 3.228554 max(cumsum(x)) [1] 3.228554 Andy From: Sean Davis I have vector X

RE: [R] Running sum

2004-11-19 Thread Andy Bunn
see ?cumsum x - 1:10 cumsum(x) max(cumsum(x)) HTH, Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Sean Davis Sent: Friday, November 19, 2004 1:09 PM To: r-help Subject: [R] Running sum I have vector X of length N that I want to have a

Re: [R] Running sum

2004-11-19 Thread Sean Davis
Thanks all. cumsum does the job Sean __ [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] Running sum

2004-11-19 Thread Marc Schwartz
On Fri, 2004-11-19 at 13:08 -0500, Sean Davis wrote: I have vector X of length N that I want to have a running sum for (called Y). I just need max(Y). I do this with a for loop like so: Y - vector(length=N) Y[1] - X[1] for (i in 2:N) { Y[i] - Y[i-1]+X[i] }

Re: [R] Running sum

2004-11-19 Thread Prof Brian Ripley
?cumsum On Fri, 19 Nov 2004, Sean Davis wrote: I have vector X of length N that I want to have a running sum for (called Y). I just need max(Y). I do this with a for loop like so: Y - vector(length=N) Y[1] - X[1] for (i in 2:N) { Y[i] - Y[i-1]+X[i] } return(max(Y)) Is there

Re: [R] Running sum

2004-11-19 Thread Spencer Graves
Have you considered cumsum? cumsum(c(1, 2, 3, -9, 2)) [1] 1 3 6 -3 -1 hope this helps. spencer graves Sean Davis wrote: I have vector X of length N that I want to have a running sum for (called Y). I just need max(Y). I do this with a for loop like so: Y -

[R] Selecting distinct values from a column

2004-11-19 Thread Ann Huxtable
Hello, Is there an easy way (other than the obvious for loop?) to select distinct values from a column vector? Many thanks Ann __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] Running sum

2004-11-19 Thread Roger D. Peng
You could try using embed(), but I doubt it's faster. -roger Sean Davis wrote: I have vector X of length N that I want to have a running sum for (called Y). I just need max(Y). I do this with a for loop like so: Y - vector(length=N) Y[1] - X[1] for (i in 2:N) { Y[i] -

[R] R (unix) command line editing for native speakers of vi

2004-11-19 Thread Steve Dutky
As an inveterate user of vi, I was pleased to stumble on how to use it for editing R commands. When an interactive R session is launched under unix, the command line editor most likely defaults to emacs. Typing esc,ctrl+j will switch this to vi editing mode (see below for possible

RE: [R] Running sum

2004-11-19 Thread Philippe Grosjean
?cumsum is not exactly the answer (as I understand it), but a part of it. I propose: runSum2 - function(x) cumsum(x)[-1] - c(0, cumsum(x[1:(length(x) - 2)])) # Example a - round(runif(10, 0, 10)) a runSum2(a) max(runSum2(a)) # To get only the max Best, Philippe

Re: [R] Running sum

2004-11-19 Thread Anon.
Prof Brian Ripley wrote: ?cumsum On Fri, 19 Nov 2004, Sean Davis wrote: I have vector X of length N that I want to have a running sum for (called Y). I just need max(Y). I do this with a for loop like so: Y - vector(length=N) Y[1] - X[1] for (i in 2:N) { Y[i] - Y[i-1]+X[i] }

[R] Rd and document formatting

2004-11-19 Thread strivens
I am trying to compose some documentation for a package I hope to release soon. However when I do the following: R CMD Rd2dvi --pdf mypackage.Rd I get two mainly blank pages prepended to the top of the document - the only text on either (at the top of the first page) is as follows:

Re: [R] Selecting distinct values from a column

2004-11-19 Thread Marc Schwartz
On Fri, 2004-11-19 at 19:01 +, Ann Huxtable wrote: Hello, Is there an easy way (other than the obvious for loop?) to select distinct values from a column vector? Many thanks Ann Presuming that by 'distinct' you mean 'unique', see ?unique MyVec - rep(1:5, times = c(1:5)) MyVec

RE: [R] R (unix) command line editing for native speakers of vi

2004-11-19 Thread Liaw, Andy
If you have the following in your ~/.inputrc, you won't need to set it manually every time (at least according to the readline manual): set editing-mode vi HTH, Andy From: Steve Dutky As an inveterate user of vi, I was pleased to stumble on how to use it for editing R commands. When

Re: [R] adjusting the map of France to 1830

2004-11-19 Thread Michael Friendly
Here's what I tried. I can plot a selection of regions, but I can't seem to remove an arbitrary list of region numbers, unless I've done something wrong by selecting the regions I want to plot with departements[-exclude]. I also get an error when I try to use map.text to label a map with only

Re: [R] Plotting averages of y per x

2004-11-19 Thread Uwe Ligges
Gregor GORJANC wrote: Hello! I often plot average of y instead of all y values, since one can easily see the trend if there is to many points and/or x might be like 1, 2, 3, 4, 5, ... and you might get a cloud (which can also be informative) and/or columns of points. Anyway, learning with R i

Re: [R] Time series plot orientation

2004-11-19 Thread Uwe Ligges
Costas Vorlow wrote: Hello, I am trying to rotate by 90 degrees a time series plot. So I need the time axis to be the vertical one. Is there an easy way? No, you have to do it manually, AFAIK. Uwe Ligges I couldn't guess anything from the help pages. Apologies for a silly question. Regards,

Re: [R] Rd and document formatting

2004-11-19 Thread Duncan Murdoch
On Fri, 19 Nov 2004 14:46:14 -0600, strivens [EMAIL PROTECTED] wrote : I am trying to compose some documentation for a package I hope to release soon. However when I do the following: R CMD Rd2dvi --pdf mypackage.Rd I get two mainly blank pages prepended to the top of the document - the only

[R] Re: 3d Map with bars

2004-11-19 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: Apologies in advance for the question. I am trying to draw a map of the US as a surface plot so that I would be able to drop bars on the different states (something like Uwe Ligges' scatterplot3d example 4). I am not sure where to start looking for such a beast. If

Re: [R] adjusting the map of France to 1830

2004-11-19 Thread Stephane DRAY
Hello Michael, you have made a small mystake in your code: use gfrance -map.text('france', regions=depts, add=FALSE) But I think that, it would be quite difficult to do what you need in R. It is more a GIS problem. I think that your problem can be better treated if you can create your map outside

RE: [R] Running sum

2004-11-19 Thread Marc Schwartz
On Fri, 2004-11-19 at 21:10 +0100, Philippe Grosjean wrote: ?cumsum is not exactly the answer (as I understand it), but a part of it. I propose: runSum2 - function(x) cumsum(x)[-1] - c(0, cumsum(x[1:(length(x) - 2)])) # Example a - round(runif(10, 0, 10)) a runSum2(a)

Re: [R] function 'vcov' for coxph in R 2.0.0

2004-11-19 Thread Uwe Ligges
Lei Liu wrote: Hi there, After I fitted a cox model, I used vcov to obtain the variance of the parameter estimate. It worked correctly in R 1.9.1. But it failed in R 2.0.0 and the error message is Error in vcov(cox.1) : no applicable method for vcov Please give us details and read the posting

Re: [R] Rd and document formatting

2004-11-19 Thread Mark Strivens
Thanks Duncan, I really know nothing about Latex - however the macro you detailed below does not exist in the file: /usr/lib/R/share/texmf/Rd.sty The header of that file reads: %%% Rd.sty ... Style for printing the R manual %%% %%% Modified 1998/01/05 by [EMAIL PROTECTED] %%% Modified 1998/07/07

[R] Re: 3d Map with bars

2004-11-19 Thread partha_bagchi
Thanks for reply. I need to first draw the map of USA a perspective plot. I guess thats where my problem was. Partha Uwe Ligges [EMAIL PROTECTED] 11/19/2004 04:33 PM To: [EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject:Re: 3d Map with bars [EMAIL

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

2004-11-19 Thread Cliff Lunneborg
Could I voice my support for the sixth point raised by John Fox? Many users would find such a development to be enormously useful. (6) As has been pointed out, e.g., by Duncan Murdoch, solving the function-locating problem is best done by a method or methods that automatically accommodate the

Re: [R] Difference between two correlation matrices

2004-11-19 Thread Fernando Henrique Ferraz P. da Rosa
michael watson (IAH-C) writes: Hi Now a more theoretical question. I have two correlation matrices - one of a set of variables under a particular condition, the other of the same set of variables under a different condition. Is there a statistical test I can use to see if these

Re: [R] Difference between two correlation matrices

2004-11-19 Thread Fernando Henrique Ferraz P. da Rosa
er.. forgot to attach the file. there it goes. (sorry) michael watson (IAH-C) writes: Hi Now a more theoretical question. I have two correlation matrices - one of a set of variables under a particular condition, the other of the same set of variables under a different condition. Is

[R] ERROR: installing package indices failed

2004-11-19 Thread Sigal Blay
Dear R-helpers, I am developing a package named LDehatmap. It depends on the genetics package and includes two data files and a demo file. When I'm trying to install it, I get the following messages: * Installing *source* package 'LDheatmap' ... ** R ** data ** demo ** help Building/Updating

Re: [R] Rd and document formatting

2004-11-19 Thread Uwe Ligges
Mark Strivens wrote: Thanks Duncan, I really know nothing about Latex - however the macro you detailed below does not exist in the file: /usr/lib/R/share/texmf/Rd.sty The header of that file reads: %%% Rd.sty ... Style for printing the R manual %%% %%% Modified 1998/01/05 by [EMAIL PROTECTED] %%%

Re: [R] Running sum

2004-11-19 Thread hadley wickham
Perhaps I'm missing something, but isn't the maximum of the cumulative sum simply the last value, ie. sum(x)? Hadley __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] Running sum

2004-11-19 Thread Marc Schwartz
On Fri, 2004-11-19 at 16:44 -0600, hadley wickham wrote: Perhaps I'm missing something, but isn't the maximum of the cumulative sum simply the last value, ie. sum(x)? Hadley Indeed! And...going back to Sean's original post he did write: I just need max(Y). Thus, a whole group of us

Re: [R] Running sum

2004-11-19 Thread Kjetil Brinchmann Halvorsen
Marc Schwartz wrote: On Fri, 2004-11-19 at 16:44 -0600, hadley wickham wrote: Perhaps I'm missing something, but isn't the maximum of the cumulative sum simply the last value, ie. sum(x)? Hadley Indeed! And...going back to Sean's original post he did write: I just need max(Y). Thus, a

Re: [R] Running sum

2004-11-19 Thread Douglas Bates
Marc Schwartz wrote: On Fri, 2004-11-19 at 16:44 -0600, hadley wickham wrote: Perhaps I'm missing something, but isn't the maximum of the cumulative sum simply the last value, ie. sum(x)? Hadley Indeed! And...going back to Sean's original post he did write: I just need max(Y). Thus, a whole group

Re: [R] Rd and document formatting

2004-11-19 Thread Duncan Murdoch
On Fri, 19 Nov 2004 15:48:11 -0600, Mark Strivens [EMAIL PROTECTED] wrote: Thanks Duncan, I really know nothing about Latex - however the macro you detailed below does not exist in the file: /usr/lib/R/share/texmf/Rd.sty The header of that file reads: %%% Rd.sty ... Style for printing the R

Re: [R] Running sum

2004-11-19 Thread Marc Schwartz
On Fri, 2004-11-19 at 18:00 -0600, Douglas Bates wrote: I have forgotten the details of the original question but it seems to me that if the elements of x could be both positive and negative then the maximum of the cumulative sum doesn't have to be the last sum. On Fri, 2004-11-19 at 20:00

[R] annotation problems (conditional text())

2004-11-19 Thread Johannes Graumann
Hello, I'm trying to annotate my plots nicely and am running into trouble. This example contains two problems: a) the 'text()' arguments do not show the conditional behavior I'm trying to give them. I try to test for the intercept of my regression and reformat the output accordingly ('+

[R] subset on data frame

2004-11-19 Thread Lei Jiang
I have a data frame. And I'd like to subset according to rownames. subset(mydataframe, rownames(mydataframe) == myrow, select = mycols) it turned out that myrow cannot be a vector. But I have multiple rows to pick. Is there a way to get around this problem?? Thank you for your help!! Lei Jiang

Re: [R] subset on data frame

2004-11-19 Thread Thomas Lumley
On Fri, 19 Nov 2004, Lei Jiang wrote: I have a data frame. And I'd like to subset according to rownames. subset(mydataframe, rownames(mydataframe) == myrow, select = mycols) it turned out that myrow cannot be a vector. But I have multiple rows to pick. Is there a way to get around this problem??

Re: [R] ERROR: installing package indices failed

2004-11-19 Thread Prof Brian Ripley
On Fri, 19 Nov 2004, Sigal Blay wrote: Dear R-helpers, I am developing a package named LDehatmap. It depends on the genetics package and includes two data files and a demo file. When I'm trying to install it, I get the following messages: * Installing *source* package 'LDheatmap' ... ** R ** data