Re: [R] to raise in a loop more than 1

2009-06-26 Thread Rau, Roland
Dear Damien, > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of damien landais > Sent: Friday, June 26, 2009 11:16 AM > To: R-help@r-project.org > Subject: [R] to raise in a loop more than 1 > > I would raise x,y and z in a loo

Re: [R] [R} seasonal differencing

2009-04-03 Thread Rau, Roland
Hi, > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Joseph Magagnoli > Sent: Thursday, April 02, 2009 5:36 PM > To: r-help@r-project.org > Subject: [R] [R} seasonal differencing > > Hi all, > I was wondering how to construct

Re: [R] newton method

2009-03-23 Thread Rau, Roland
Hi, you might be also interested in a general overview as given here: http://cran.r-project.org/web/views/Optimization.html Hope this helps, Roland > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Michael Kubovy > Sent: Mond

Re: [R] Finding Lambda in Poisson distribution

2009-03-02 Thread Rau, Roland
Hi, > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Saeed Ahmadi > Sent: Monday, March 02, 2009 3:16 PM > To: r-help@r-project.org > Subject: [R] Finding Lambda in Poisson distribution > > > Hi, > > I have a dataset. First

Re: [R] Bold Face in Plot

2009-03-02 Thread Rau, Roland
Dear Prof. Ripley, > -Original Message- > From: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] > Sent: Monday, March 02, 2009 3:05 PM > To: Rau, Roland > Cc: r-help@r-project.org > Subject: Re: [R] Bold Face in Plot > > thestring <- "the-actual-string&

[R] Bold Face in Plot

2009-03-02 Thread Rau, Roland
Dear all, I am trying to plot some text in bold face which works fine: plot(0:1,0:1,type="n") text(x=0.5, y=0.5, labels=expression(bold("the-actual-string"))) Now when I try to do the following, the displayed text reads thestring: thestring <- "the-actual-string" plot(0:1,0:1,type="n") text(x=0

Re: [R] New York Times - R - article a fraud?

2009-02-03 Thread Rau, Roland
Hi, it seems to me that this article in the NYT started many discussions. Maybe I missed it but are there some responses to the article by Ihaka & Gentleman? Or maybe by John Chambers as the central person for the development of S (hope I am not mistaken here)? I'd be more interested in their opi

Re: [R] Plot dagger symbol in R

2009-01-29 Thread Rau, Roland
s) > && on a device with Unicode support > && in a font that has the glyph. > > (it works on Windows because we fake much of a UTF-8 locale there). > > There is an alternative: dagger _is_ in the standard Adobe character > set, so this will work as something \206

[R] Plot dagger symbol in R

2009-01-29 Thread Rau, Roland
Dear all, I would like to plot the dagger symbol in R (like LaTeX's \dagger). However, I was unable to do so. First, I thought maybe dagger actually exists just like the degree symbol: plot(0:1,0:1, type="n") text(x=0.5, y=0.5, labels=expression(degree)) plot(0:1,0:1, type="n") text(x=0.5, y=0.

Re: [R] Sweave encoding problem

2009-01-19 Thread Rau, Roland
Hi Gerrit, > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Gerrit Voigt > Sent: Monday, January 19, 2009 4:48 PM > To: r-help@r-project.org > Subject: [R] Sweave encoding problem > > Hello, > Sweave seems to have trouble proc

Re: [R] regex -> negate a word

2009-01-18 Thread Rau, Roland
Thanks! (I have to admit, though, that I expected something simple) Thanks, Roland -Original Message- From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] Sent: Sun 1/18/2009 8:54 PM To: Rau, Roland Cc: r-help@r-project.org Subject: Re: [R] regex -> negate a word Try this: g

Re: [R] Formatting the axis of plot() to shown our own values.

2009-01-18 Thread Rau, Roland
Hi -Original Message- From: r-help-boun...@r-project.org on behalf of saurabh_koparkar Sent: Sun 1/18/2009 5:12 PM To: r-help@r-project.org Subject: [R] Formatting the axis of plot() to shown our own values. Part 1: I want to plot the CO2 concentration vs. year, but extending the x-ax

Re: [R] regex -> negate a word

2009-01-18 Thread Rau, Roland
othendieck [mailto:ggrothendi...@gmail.com] Sent: Sun 1/18/2009 8:28 PM To: Rau, Roland Cc: r-help@r-project.org Subject: Re: [R] regex -> negate a word Try this: # indexes setdiff(seq_along(x), grep("abc", x)) # values setdiff(x, grep("abc", x, value = TRUE)) Another po

[R] regex -> negate a word

2009-01-18 Thread Rau, Roland
Dear all, let's assume I have a vector of character strings: x <- c("abcdef", "defabc", "qwerty") What I would like to find is the following: all elements where the word 'abc' does not appear (i.e. 3 in this case of 'x'). Since I am not really experienced with regular expressions, I started slo

Re: [R] Re ad a text file from a directory in which an R script finds itself

2009-01-13 Thread Rau, Roland
Hi, > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of ppaarrkk > Sent: Tuesday, January 13, 2009 12:53 PM > To: r-help@r-project.org > Subject: [R] Re ad a text file from a directory in which an R > script finds itself > > >

Re: [R] Useful books for learning the R software and the S programminglanguage

2009-01-13 Thread Rau, Roland
Hi, if I may add my 2 cents. - The most important thing is to have a real problem/question you want to solve. Just "trying to learn" is very difficult because you might encounter some problems and if this is not a problem you *have* to solve, I would have the tendency to skip this particular probl

Re: [R] Extracting File Basename without Extension

2009-01-09 Thread Rau, Roland
Hi, > [mailto:r-help-boun...@r-project.org] On Behalf Of Henrique > Dallazuanna > > Try this also: > > substr(basename(myfile), 1, nchar(basename(myfile)) - 4) > This, of course, assumes that the extensions are always 3 characters. Sometimes there might be more ("index.html"), sometimes less