Re: [R] R command line usage

2008-01-27 Thread Prof Brian Ripley
On Sun, 27 Jan 2008, Deepak Chandran wrote: > Hello, > >Usually if I want to run R code from another program, I generate an > R script and run R BATCH. However, I have been wanting to access R's > command line from another program. In other words, I want the std output > from another program t

[R] KM estimation for interval censoring?

2008-01-27 Thread gallon li
Does anybody know if there is such a function to estimate the distribution for interval censored data? survfit doesn't work for this type of data as I tried various references. [[alternative HTML version deleted]] __ R-help@r-project.org mailin

Re: [R] How to read Directory

2008-01-27 Thread mel
?dir __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] How to read Directory

2008-01-27 Thread J. Scott Olsson
On Jan 28, 2008 2:32 AM, Prateek Singh <[EMAIL PROTECTED]> wrote: > I have bunch of files to be parsed for my problem. I don't want to > keep on executing R script for each file. > Is there any way through which I can read whole directory. Like PERL > has opendir() function for directory handling.

[R] How to read Directory

2008-01-27 Thread Prateek Singh
Hi, I have bunch of files to be parsed for my problem. I don't want to keep on executing R script for each file. Is there any way through which I can read whole directory. Like PERL has opendir() function for directory handling. One more doubt is commandArgs() function returns array or single va

[R] R command line usage

2008-01-27 Thread Deepak Chandran
Hello, Usually if I want to run R code from another program, I generate an R script and run R BATCH. However, I have been wanting to access R's command line from another program. In other words, I want the std output from another program to feed into R (command line). Is there any way to

[R] Package Installation produces "linux/limits.h: No such file or directory" error when installing the lpSolve package

2008-01-27 Thread Joe_K
Dear Friends, I am trying to install a few packages in R and am receiving error messages. Since the error messages are different, I am posting them separately. The second error is with the installation of lpSolve. The core error message is: =

[R] Package Installation produces "gcc fails sanity check" error when installing RODBC error

2008-01-27 Thread Joe_K
Dear Friends, I haven't used R very much, but am hoping to use it more. I recently installed it again on my Linux machine and began to install a few packages, which I figure I will need. I am also new to this forum. I hope I am posting it in the right place. I am trying to install a few packa

[R] How to fill bar plot with textile rather than color

2008-01-27 Thread CHENYS
Hi, I'm looking for a tool which can fill bar chart with dash, skewed line, or grids, rather than pure color. Any one have the idea how to do that in R? Or maybe in Matlab will also be helpful. Thanks very much. -- View this message in context: http://www.nabble.com/How-to-fill-bar-plot-with-te

[R] Package simex

2008-01-27 Thread Michael Kubovy
Dear R-helpers, It is not clear to me how you get measurement.error SD when you have a single dataset, and it is not clear to me how sensitive SIMEX is to errors in the estimates of measurement error. Could someone please point me to the relevant literature? _ Prof

Re: [R] Linux, UNIX, XP32, Vista X64 or ...? [SEC=UNCLASSIFIED]

2008-01-27 Thread Gabor Grothendieck
On the PC there is a builtin GUI but not on UNIX and there are some packages that are OS specific in which case you might get more or less selection but probably more. Also depending on the specific system you may have greater difficulty installing certain packages due to the need to compile them

Re: [R] [OT] Open source archive program on windows

2008-01-27 Thread Muenchen, Robert A (Bob)
This is a popular one: http://www.7-zip.org/ Cheers, Bob > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > project.org] On Behalf Of Duncan Murdoch > Sent: Sunday, January 27, 2008 6:37 PM > To: David Scott > Cc: [EMAIL PROTECTED] > Subject: Re: [R] [OT] Open sour

Re: [R] titles with superscript and variale value

2008-01-27 Thread Monica Pisica
Hi Henrique, Thanks a lot - this works like a charm . and actually i can have it in the plot command instead of writing a different line of command for tile ;-) Monica> Date: Sun, 27 Jan 2008 19:52:59 -0200> From: [EMAIL PROTECTED]> To: [EMAIL PROTECTED]> Subject: Re: [R] titles with sup

Re: [R] [OT] Open source archive program on windows

2008-01-27 Thread Duncan Murdoch
On 27/01/2008 4:46 PM, David Scott wrote: > > I am looking for a recommendation for an open source competitor to Winzip. > I seem to recall Brian Ripley mentioning one in the last year or so, but > couldn't find it in the mail archives. (Searching on Ripley there is > somehow not terribly usefu

Re: [R] Linux, UNIX, XP32, Vista X64 or ...? [SEC=UNCLASSIFIED]

2008-01-27 Thread Jin.Li
Thank you very much for the explanation and clarification, Patrick. It is a great help. Best regards, Jin -Original Message- From: Patrick Burns [mailto:[EMAIL PROTECTED] Sent: Friday, 25 January 2008 9:48 To: Li Jin Cc: [EMAIL PROTECTED]; r-help@r-project.org Subject: Re: [R] Linux, UNI

Re: [R] bug in difftime with as.POSIXct

2008-01-27 Thread Dan Kelley
Thanks, that article is very helpful. D. Gabor Grothendieck wrote: > > Read relevant article in R News 4/1. > -- View this message in context: http://www.nabble.com/bug-in-difftime-with-as.POSIXct-tp15122749p15125302.html Sent from the R help mailing list archive at Nabble.com. _

Re: [R] maptools no such file

2008-01-27 Thread pieterprovoost
No, I get the same error message there... -- This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com http://www.opensubscriber.com/message/r-help@r-project.org/8476734.html __ R-help@r-project.org mailing list https://stat.ethz.ch/mai

Re: [R] [OT] Open source archive program on windows

2008-01-27 Thread Wensui Liu
i've been using 7zip and am very happy with it. On Jan 27, 2008 4:46 PM, David Scott <[EMAIL PROTECTED]> wrote: > > > I am looking for a recommendation for an open source competitor to Winzip. > I seem to recall Brian Ripley mentioning one in the last year or so, but > couldn't find it in the mail

Re: [R] titles with superscript and variale value

2008-01-27 Thread Henrique Dallazuanna
Try this plot(rnorm(100), main=bquote(Family ~ Gaussian ~ ";" ~ D^2 == .(d2))) On 27/01/2008, Monica Pisica <[EMAIL PROTECTED]> wrote: > > > Hi everyone, > > > I am trying to write a title for a plot which has a superscript like D^2 and > a value of a variable stored in that variable. i am

[R] [OT] Open source archive program on windows

2008-01-27 Thread David Scott
I am looking for a recommendation for an open source competitor to Winzip. I seem to recall Brian Ripley mentioning one in the last year or so, but couldn't find it in the mail archives. (Searching on Ripley there is somehow not terribly useful.) Suggestions? David Scott ___

[R] titles with superscript and variale value

2008-01-27 Thread Monica Pisica
Hi everyone, I am trying to write a title for a plot which has a superscript like D^2 and a value of a variable stored in that variable. i am not sure if i am clear so i will try an example: Suppose i want my title to be like: Family: Gaussian; D^2 = 0.45 where i have the value 0.45

Re: [R] Data manipulation question (opposite of table?)

2008-01-27 Thread David Winsemius
Michael Denslow <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Dear R users, > > I am a new user (probably obvious by my question) and > have really learned a lot from reading this list. > Thank you all very much. My main struggles with R are > with data manipulation. > > So here is my

Re: [R] Data manipulation question (opposite of table?)

2008-01-27 Thread Henrique Dallazuanna
Try this: rep(x[[1]], x[[2]]) On 27/01/2008, Michael Denslow <[EMAIL PROTECTED]> wrote: > Dear R users, > > I am a new user (probably obvious by my question) and > have really learned a lot from reading this list. > Thank you all very much. My main struggles with R are > with data manipulation.

[R] Data manipulation question (opposite of table?)

2008-01-27 Thread Michael Denslow
Dear R users, I am a new user (probably obvious by my question) and have really learned a lot from reading this list. Thank you all very much. My main struggles with R are with data manipulation. So here is my question... I have data that is organized as below, this is a short example. value

Re: [R] Putting frame around single panels in ggplot 2 and facet_grid()

2008-01-27 Thread Felipe Carrillo
What about using geom_vline and geom_hline to draw borders. I just couldn't find the way to set the intercept max value for geom_vline and hardcoded it to 5.5 d<- ggplot(mtcars, aes(x=mpg, y=wt)) + geom_point() + facet_grid(. ~ cyl)+ scale_y_continuous(limits=c(0,NA))+ scale_x_continuous(limits=

Re: [R] RE volution

2008-01-27 Thread [EMAIL PROTECTED]
John, great you found our initial press coverage on the Intel deal. We have been working for years on performance-oriented enhancements, and have also started to focus on support and commercialization issues. I realize that our website is dated and high-level – that will be changing over the next

Re: [R] bug in difftime with as.POSIXct

2008-01-27 Thread Gabor Grothendieck
Read relevant article in R News 4/1. On Jan 27, 2008 2:20 PM, Dan Kelley <[EMAIL PROTECTED]> wrote: > > Oh, I'm sorry to be posting a reply to my own stupid question, but the > problem is that I had not specified GMT, and so it was using local time, > which changes to 'save daylight". This is dem

Re: [R] bug in difftime with as.POSIXct

2008-01-27 Thread Dan Kelley
Oh, I'm sorry to be posting a reply to my own stupid question, but the problem is that I had not specified GMT, and so it was using local time, which changes to 'save daylight". This is demonstrated below: > unclass(as.POSIXct("1975-04-27",tz="GMT"))[1]-unclass(as.POSIXct("1975-04-28",tz="GMT"))

[R] bug in difftime with as.POSIXct

2008-01-27 Thread Dan Kelley
I am trying to do ephemeris calculations in R, which involves calculating an elapsed time. As illustrated below, difftime seems to have problems with my method, since the fractional day is sometimes the correct 0.5 and sometimes the incorrect 0.46. I am doing this on with R-2.6.1 on a powerpc-a

Re: [R] maptools no such file

2008-01-27 Thread Takatsugu Kobayashi
can you open your shapefile using reaPolyShape in sp? [EMAIL PROTECTED] wrote: > Hello, > > I'm having problems reading a shapefile with read.shape (maptools). I'm > absolutely sure my file is there, but I get "no such file". The wd is ok, > since read.table for example does find the file. > >

[R] maptools no such file

2008-01-27 Thread pieterprovoost
Hello, I'm having problems reading a shapefile with read.shape (maptools). I'm absolutely sure my file is there, but I get "no such file". The wd is ok, since read.table for example does find the file. > getwd() [1] "D:/somedirectory/R scripts" > read.table("cities.shp") Error in read.table("ci

Re: [R] Putting frame around single panels in ggplot 2 and facet_grid()

2008-01-27 Thread hadley wickham
On Jan 27, 2008 4:23 AM, Rainer M Krug <[EMAIL PROTECTED]> wrote: > Hi > > I want to highlight two panels in a grid created with facet_grid() by > putting a box around it or usiong another background colour. Is this > possible, and if yes, how? It's possible, but not particularly easy. You could

Re: [R] using facet_grid() from ggplot2 with additional text in labels

2008-01-27 Thread hadley wickham
> I am using ggplot2 at the moment and I must say it is definitely better > then ggplot - good work. > > My problem is that I am using facet_grid() in the following way: > > > p <- ggplot(ssq, aes(x=year, y=-log(ssq))) > > p + geom_point() + facet_grid(me*gi~cs*rz) > > and it works nicely, except

Re: [R] OR estimate

2008-01-27 Thread David Winsemius
"sigalit mangut-leiba" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Hello, > I have a loop with 1000 repetitions which includes OR computation of > an exposure factor and outcome. > I compute OR like this: > > t<-table(exposure,outcome) > > oddsratio(t)$measure["estimate"] > > This g

Re: [R] double-click in RData file versus load( file )

2008-01-27 Thread Duncan Murdoch
On 26/01/2008 9:03 PM, Cleber Nogueira Borges wrote: > hi Gabor and Duncan, > > I make a test and I find that the key of problem > is the setwd() command in my Rprofile.site > > I don't understand this behaviour yet! :-( I understand it now. It's a small bug in the startup code. When you speci

Re: [R] calling a list element from a list name passed to a function

2008-01-27 Thread Gabor Grothendieck
Its a FAQ: http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-can-I-turn-a-string-into-a-variable_003f On Jan 27, 2008 8:42 AM, Gonçalo Ferraz <[EMAIL PROTECTED]> wrote: > Hi, > > 'true_name' is a list of numerical, matrix, and text items > > I do > > pass_name <- "true_name" > > and pass the name

[R] calling a list element from a list name passed to a function

2008-01-27 Thread Gonçalo Ferraz
Hi, 'true_name' is a list of numerical, matrix, and text items I do pass_name <- "true_name" and pass the name of the list to a function so that the character class variable 'passed_name' contains the name of the list called 'true_name' Inside the function, how can I get a specified elemen

[R] how to choose between adf and pp

2008-01-27 Thread tom soyer
Hi, I was wondering if there is a test that would help one choose whether adf or pp should be used. Would the shapiro.test work for this purpose? Thanks! -- Tom [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https:

Re: [R] [OT] vernacular names for circular diagrams

2008-01-27 Thread Jean lobry
>Nice. Two minor points: > >- the illustration for Danish has a cake which is speaking Polish > >- "Stastistical" (on the ISI page) > Ooops! I have changed the picture and fixed the typo, Thanks. -- Jean R. Lobry([EMAIL PROTECTED]) Laboratoire BBE-CNRS-UMR-5558, Univ. C. Bernard -

Re: [R] scatterplot3d with categorical data

2008-01-27 Thread Duncan Murdoch
On 26/01/2008 9:21 PM, Geoff Russell wrote: > On Jan 26, 2008 11:23 PM, Duncan Murdoch <[EMAIL PROTECTED]> wrote: >> On 26/01/2008 5:24 AM, Geoff Russell wrote: >>> Dear users, >>> >>> I'm trying to produce a 3d bar plot but the x and y dimensions have >>> categorical >>> data -- so I only want 3

[R] OR estimate

2008-01-27 Thread sigalit mangut-leiba
Hello, I have a loop with 1000 repetitions which includes OR computation of an exposure factor and outcome. I compute OR like this: t<-table(exposure,outcome) oddsratio(t)$measure["estimate"] This gives me the estimates for exposure=0 and exposure=1 but exposure=0 is the reference group and i ne

Re: [R] [OT] vernacular names for circular diagrams

2008-01-27 Thread Peter Dalgaard
Jean lobry wrote: >> Dear useRs, >> >> by a circular diagram representation I mean what you will get by entering >> this at your R promt: >> >> pie(1:5) >> >> Nice to have R as a lingua franca :-) >> >> The folowing quote is from page 360 in this very interesting paper: >> >> @article{Spence

[R] EXCUSE ME

2008-01-27 Thread TEBBI FATIMA
excuse me if i cant formulate my question i start working with R im not a statistician but i need use statistics . THANK YOU - [[alternative HTML version deleted]] __ R-help@r-project.org mai

[R] Putting frame around single panels in ggplot 2 and facet_grid()

2008-01-27 Thread Rainer M Krug
Hi I want to highlight two panels in a grid created with facet_grid() by putting a box around it or usiong another background colour. Is this possible, and if yes, how? Thanks Rainer -- Rainer M. Krug, Dipl. Phys. (Germany), MSc Conservation Biology (UCT) Plant Conservation Unit Department

Re: [R] [OT] vernacular names for circular diagrams

2008-01-27 Thread Jean lobry
> Dear useRs, > > by a circular diagram representation I mean what you will get by entering > this at your R promt: > > pie(1:5) > > Nice to have R as a lingua franca :-) > > The folowing quote is from page 360 in this very interesting paper: > > @article{SpenceI2005, > title = {No Hum

Re: [R] Likelihood optimization numerically

2008-01-27 Thread Mohammad Ehsanul Karim
Dear List, Probably i am missing something important in optimize: llk.1st <- function(alpha){ x <- c(20.0, 23.9, 20.9, 23.8, 25.0, 24.0, 21.7, 23.8, 22.8, 23.1, 23.1, 23.5, 23.0, 23.0) n <- length(x) llk1 <- -n*log(gamma(alpha)) - n*alpha*log(sum(x)/(n*alpha)) + (alpha - 1)*(sum(log(x))) - (su