Re: [R] saving to docx

2012-10-19 Thread Daróczi Gergely
Hi Javad, saving R output to jpeg depends on what you want to save. For example saving an `lm` object to an image would be fun :) But you could export that quite easily to e.g. docx after installing Pandoc[1] and pander[2] package. You can find some examples in the README[3]. Best, Gergely [1] h

Re: [R] [newbie] scripting remote check for R package

2012-09-04 Thread Daróczi Gergely
You might try: R --slave -e 'as.numeric(suppressWarnings(suppressPackageStartupMessages(require(ggplot2' Best, Gergely On Tue, Sep 4, 2012 at 3:30 AM, Tom Roche wrote: > > https://stat.ethz.ch/pipermail/r-help/2012-September/322985.html > >>> for RSERVER in 'foo' 'bar' 'baz' ; do > >>> s

Re: [R] [newbie] scripting remote check for R package

2012-09-02 Thread Daróczi Gergely
I would call something like this via ssh (please note: I used "ggplot2" in the example): Rscript -e 'as.numeric(suppressWarnings(suppressPackageStartupMessages(require(ggplot2' You could easily extend this to loop through the required packages and tweak the output for your needs. Best, Gerge

Re: [R] Olympics: 200m Men Final

2012-08-10 Thread Daróczi Gergely
On Fri, Aug 10, 2012 at 10:23 AM, Rui Barradas wrote: > Hello, > > The main critique, I think, is that we assume a certain type of model > where the times can decrease until zero. And that they can do so linearly. > I believe that records can allways be beaten but 40-50 years ago times were > mea

Re: [R] R-RApache to develop Knowledge Base

2012-02-06 Thread Daróczi Gergely
Hi, I am not sure about your data structure, but if you do not alter those often from third-party programs, then storing the information in R's native file formats (like RData) might give you some performance boost against always querying MySQL. Of course this depends on data structure and volume.

Re: [R] Fiting a beta distribution in R

2011-02-21 Thread Daróczi Gergely
Hi, Sure. Check fitdistr from MASS or fitdist from fitdistrplus package. Best, Gergely On Mon, Feb 21, 2011 at 3:29 PM, Jim Silverton wrote: > Is there any R package that can fit a beta distribution in R? > > -- > Thanks, > Jim. > >[[alternative HTML version deleted]] > > __

Re: [R] From SPSS Syntax to R code

2011-02-12 Thread Daróczi Gergely
Hi, instead of sub, use substr in R, also look for 'which' and 'factor' in the manual. E.g.: ?substr ?which > ?factor I hope this could help you to rewrite the SPSS syntax in R. Good luck! Best, Gergely On Sat, Feb 12, 2011 at 2:08 PM, beky wrote: > > There is a code from SPSS Syntax > >

Re: [R] Statistical formulas

2011-01-18 Thread Daróczi Gergely
Hi, use the help files (e.g. ?wilcox.test) to see references. There you can see articles and book parts where you can find the original formula (and background theory). Also, analyzing the source code of a function may help. Regards, Gergely On Tue, Jan 18, 2011 at 5:23 PM, ilya wrote: > Hello

Re: [R] Real time dataset

2011-01-11 Thread Daróczi Gergely
Hello, this little example my work for demo purposes: x1 = runif(45) x2 = runif(45) x3 = runif(45) df = data.frame(x1=x1,x2=x2,x3=x3) test <- function(df, values, n) { if (nrow(df) < n) { df <- rbind(df, values) } else { df[1:(nrow(df)-1),] <- df[2:nrow(df),] df[n,] <- values } return(df) }