[R] Build Windows binary

2009-04-27 Thread Matthew Fero
Hi everyone, I'm trying to use the online resource, http://win-builder.r- project.org/ in order to build an R package for colleagues on Windows machines (I'm on Mac OS X). I'm not getting an email response from the server (even in my junk mail box). The site explains that the email addre

[R] help on bwplot function

2009-04-27 Thread He, Yulei
Dear all: I am using R function bwplot to plot box plots. I would like to change some parameters of the typical box plots. For example, I would like to try different types of whisker lines. I can use whiskerline=x in boxplot function but not in bwplot function. Could you tell me how I can do it

Re: [R] Extract one element from yahooKeystats data

2009-04-27 Thread J Toll
On Mon, Apr 27, 2009 at 5:42 PM, David Winsemius wrote: > Using str(data) would have been more informative. > > "data" it turns out is a dataframe with a single column. which is a factor > with rownames. Not the most typical of constructions, but the authors must > have had their reasons > >

[R] question about adaboost.

2009-04-27 Thread Cecilia Lezama
Hello, I would like to know how to obtain the misclassification error when performing a boosting analisis with ADABAG package? With: > prop.table(Tesis.boostcv$confusion) I obtain the confusion matrix, but not the overall missclassification error. Thanks in advance, BSc. Cecilia Lezama Facultad

Re: [R] problem with symbol function

2009-04-27 Thread Christophe Dutang
ok, I'll try to use to your code or use pdf files. Thanks for all Christophe Le 28 avr. 09 à 01:38, Joshua Wiley a écrit : My apologies; I did not use exactly his code. I usually plot directly to postscript files. Since when I manipulated the lty argument, I got the expected results (via p

[R] problems in package gam

2009-04-27 Thread Anke Konrad
Hi all, until now I have generally used mgcv for gams, however, I decided to experiment with the package gam, and have ran into the previously outlined problem (see below), for which I have not yet found a solution in the archives. If anyone has any suggestions, please let me know. The only

[R] effects package --- add abline to plot

2009-04-27 Thread Prew, Paul
Hello, I am not having success in a simple task. Using the effects package, I would like to add reference lines at probability values of 0.1 – 0.6 on a plot of the effects. The plot command works, but following up with an abline command produces the message “plot .new has not been called

Re: [R] Memory issues in R

2009-04-27 Thread Gabor Grothendieck
If by "review" you mean read in summary information then sqldf can do that using the sqlite database in two lines of code. You don't have to install, set up or define the database at all. sqldf and the underlying RSQLite will do all that for you. See example 6b on the home page: http://code.goog

Re: [R] Extract one element from yahooKeystats data

2009-04-27 Thread David Winsemius
On Apr 27, 2009, at 8:16 PM, J Toll wrote: On Mon, Apr 27, 2009 at 5:42 PM, David Winsemius > wrote: Using str(data) would have been more informative. "data" it turns out is a dataframe with a single column. which is a factor with rownames. Not the most typical of constructions, but the aut

Re: [R] Memory issues in R

2009-04-27 Thread Avram Aelony
Others may have mentioned this, but you might try loading your data in a small database like mysql and then pulling smaller portions of your data in via a package like RMySQL or RODBC. One approach might be to split the data file into smaller pieces outside of R, then read the smaller pie

Re: [R] save history only option under Linux

2009-04-27 Thread jdeisenberg
alex lee wrote: > > Is there any options that I can save history only? > The only save option is --save, which saves both data and history. > However I want to restore the history for my next R session.. > > If there is no such option that meets my needs. Is there any other way to > work out, s

[R] MCO: Timing using model.matrix method

2009-04-27 Thread Corey Dow-Hygelund
Hi fellow users of R, My research requires the simultaneous optimization of several response functions. Therefore, I am using the nsga2 method in the mco package, which works beautifully. However, I am running into a significant timing difference that is causing me grief. The details: Say I ha

Re: [R] Extract one element from yahooKeystats data

2009-04-27 Thread David Winsemius
Using str(data) would have been more informative. "data" it turns out is a dataframe with a single column. which is a factor with rownames. Not the most typical of constructions, but the authors must have had their reasons data$Value[row.names(data)=="Float"] # [1] 1.30B # 52 Levels: -

Re: [R] plot estimates and their 95% confidence intervals

2009-04-27 Thread Mike Lawrence
Take a look at ggplot2: http://had.co.nz/ggplot2/ http://had.co.nz/ggplot2/book/ Particularly: http://had.co.nz/ggplot2/geom_point.html http://had.co.nz/ggplot2/geom_errorbar.html http://had.co.nz/ggplot2/coord_flip.html ex: p = ggplot(my_data,aes(x=state,y=ami_mean)) p = p + geom_point() p =

Re: [R] problem with symbol function

2009-04-27 Thread Joshua Wiley
My apologies; I did not use exactly his code. I usually plot directly to postscript files. Since when I manipulated the lty argument, I got the expected results (via postscript), everything seemed in order. It never occurred to me that postscript would not give me the same view. I am very sorry

Re: [R] R-Help

2009-04-27 Thread David Winsemius
PLEASE do read the posting guide: AND provide commented, minimal, self-contained, reproducible code // ..or at least a description of what you have tried without success to do. Operating system details? (as outlined in the posting

Re: [R] Extract one element from yahooKeystats data

2009-04-27 Thread David Winsemius
On Apr 27, 2009, at 3:43 PM, J Toll wrote: I am trying to extract one particular piece of data(Float) from all the data returned by yahooKeystats, but thus far I'm having no luck. This is what I've got so far: library(fImport) Loading required package: timeSeries Loading required package: ti

Re: [R] Generalized linear models

2009-04-27 Thread David Winsemius
On Apr 27, 2009, at 5:19 PM, mathallan wrote: I have to fit a generalized linear model in R, and I have never done this before, so I'm in very much doubt. I have a dataset (of 4036 observations) claims sum grp 1 3852 345702931 2

Re: [R] Memoria y Procesamiento

2009-04-27 Thread David Winsemius
On Apr 27, 2009, at 9:02 AM, Mario Martinez wrote: (English) I seek information on the processing capacity of R. I understand it is possible to define 4Gb of memory capacity, No. but I would like to know more unless you can have a maximum size database to work with it in R (rows and colu

Re: [R] Julia set in R

2009-04-27 Thread Talita Perciano
Very good! Talita 2009/4/27 Henrique Dallazuanna : > See this: > > http://fractalswithr.blogspot.com/ > > > > On Mon, Apr 27, 2009 at 5:34 PM, Talita Perciano > wrote: >> >> Hi, >> >> I'm really interested in Julia sets too... If there is a R code for >> that I would like to know! >> >> Talita >

Re: [R] Julia set in R

2009-04-27 Thread Erin Hodgess
This is terrific. Thanks so much! Sincerely, Erin On Mon, Apr 27, 2009 at 3:46 PM, Henrique Dallazuanna wrote: > See this: > > http://fractalswithr.blogspot.com/ > > > > On Mon, Apr 27, 2009 at 5:34 PM, Talita Perciano > wrote: >> >> Hi, >> >> I'm really interested in Julia sets too... If ther

Re: [R] Bumps chart in R

2009-04-27 Thread Andreas Christoffersen
>> Is there no simple way to just: legend=F ? > > + opts(legend.position = "none") > > Hadley My legend is removed! - Couldn't find it in your ggplot2 book - but here it is. Brilliant - thank you very much. __ R-help@r-project.org mailing list https://s

[R] Setting R not to try to contact a CRAN repository

2009-04-27 Thread Richard Croy
Hello, I have a computer running R that cannot see the Internet. When I start RGui it asks me to select a CRAN mirror. This always fails, of course. When I restart R the selection window comes up again. This is very problematic when trying to run R in Emacs/ESS. I have been unable to find a way to

[R] plot estimates and their 95% confidence intervals

2009-04-27 Thread He, Yulei
Hi, there: I have a dataset with 50 states and for each state, I have its associated mean estimate (for some parameters) and the lower and upper bound of the 95% CI. The data look like below: state ami_mean ami_low ami_up 1 MS -0.58630 -0.90720 -0.29580 2 KY -0.48100 -0.75990 -

[R] Grouping multiple runs of multiple datasets in lattice's xyplot (with fixed example code)

2009-04-27 Thread Daniel Kornhauser
Hi: ( A bug in my example code was pointed in the post I sent out earlier today, so I am reposting with the fixed example code) I don't know if my explanation below is clear, so afterwards, I wrote a small a self contained annotated example that generates two plots. I execute simulations with dif

[R] Extract one element from yahooKeystats data

2009-04-27 Thread J Toll
I am trying to extract one particular piece of data(Float) from all the data returned by yahooKeystats, but thus far I'm having no luck. This is what I've got so far: > library(fImport) Loading required package: timeSeries Loading required package: timeDate > data<-yahooKeystats("IBM") trying URL

[R] Generalized linear models

2009-04-27 Thread mathallan
I have to fit a generalized linear model in R, and I have never done this before, so I'm in very much doubt. I have a dataset (of 4036 observations) claims sum grp 1 3852 345702931 2 1194 7776468 1 3

Re: [R] R-Help

2009-04-27 Thread Sarjinder Singh
 Good Day!  Could you please help us with R language?  Our question is to learn editing in the R editor.  While typing in the R-editor, how can we make changes if we typed something wrong in the previous lines of the program.  How to save and reload a program in R?  Your help will be appreciat

[R] gettext and utf-8

2009-04-27 Thread JKPeck
We are building message catalogs in utf-8, and we want all characters to be preserved in the strings returned by gettext. I.e., we do not want conversion to the locale code page (unless it, too, is utf-8). We are unable to set the locale to a utf-8 encoding on Windows. Using iconv to convert to

Re: [R] plot implicit function

2009-04-27 Thread José E. Chacón
Dear Ying, A simple way to obtain what you want is the following: 1) Select an x-y mesh where you want to plot the function, using xs<-seq(xmin,xmax,length.xs) ys<-seq(xmin,xmax,length.ys) 2) Define f as a function of (x,y) and compute the values of f over the x-y mesh, by using zs<-outer(xs,

[R] Memoria y Procesamiento

2009-04-27 Thread Mario Martinez
(English) I seek information on the processing capacity of R. I understand it is possible to define 4Gb of memory capacity, but I would like to know more unless you can have a maximum size database to work with it in R (rows and columns). Who can help me be extremely grateful. Greetings M. Marti

Re: [R] memory.limit

2009-04-27 Thread Derek Stephen Elmerick
Hello -- So, independently of any other code, the memory limit error I referenced is not a problem. The issue I am running into now is that our analytics group must go back to all existing code and comment out the memory limit reference [See my example below]. I'm sure there is a quick fix. If any

[R] save history only option under Linux

2009-04-27 Thread alex lee
Hi, I have a question regarding the R command options under Linux Is there any options that I can save history only? The only save option is --save, which saves both data and history. I don't want to save temporary data, because sometimes the it takes much time if the temp data is too big. Howeve

Re: [R] problem dowloading

2009-04-27 Thread R Heberto Ghezzo, Dr
Hello, I am trying to upgrade the system: niu <- new.packages() install.packages(niu) commands that have worked in previous instances, now it downloads the packages missing but complains with: malformed bundle DESCRPTION file, no Contains field and does this for diseasemapping_0.3 EMJumpDiffusio

Re: [R] problem with symbol function

2009-04-27 Thread Duncan Murdoch
On 27/04/2009 5:23 PM, Christophe Dutang wrote: so it could be a limitation of graphics on windows? It's not graphics on Windows, but it appears to be a limitation of the windows() graphics device in R. It is used for bitmap plots as well as on-screen plots, which is why you saw the same eff

[R] is there a way generate correlated binomial data in R?

2009-04-27 Thread Jonathan Williams
Dear R Helpers, Is there a way to generate multivariate correlated binomial data in R, similar to how the rmvbin procedure in package bindata can generate multivariate correlated binary data? Thanks for your help, Jonathan Williams __ R-help@r-proje

Re: [R] problem with symbol function

2009-04-27 Thread Christophe Dutang
so it could be a limitation of graphics on windows? It also appears with "long dash" lines. x <- -4:4 y <- -4:4 plot(x,y,type="n") symbols(0, 0, add = TRUE, circles = 1, inches = 1, fg="black", lty="solid") symbols(0, 0, add = TRUE, circles = 1, inches = 2, fg="black",lty="dashed") symbol

Re: [R] problem with symbol function

2009-04-27 Thread Duncan Murdoch
On 27/04/2009 4:29 PM, Joshua Wiley wrote: Hi Christophe, I am able to plot dashed circles on Windows. I'm afraid I do not have any suggestions for you. What happens when you try to plot it on Windows? Were you using the same code as Christophe? I see what he saw: the circle comes out with

Re: [R] problem with symbol function

2009-04-27 Thread Christophe Dutang
Yes png or jpeg files do not work whereas pdfs are ok on windows... Le 27 avr. 09 à 22:59, Andrew Dolman a écrit : > I just tested this on my windows setup and you're right - it appears > to draw 2 solid circles and if you save as .png or .jpeg that's what > you get in the resultant file - bu

Re: [R] problem with symbol function

2009-04-27 Thread Joshua Wiley
I read that the lty=2 argument does not work on all graphics devices. You might double check that since it works on mac. Joshua Wiley Original message >Date: Mon, 27 Apr 2009 22:58:11 +0200 >From: Christophe Dutang >Subject: Re: [R] problem with symbol function >To: Joshua Wile

Re: [R] problem with symbol function

2009-04-27 Thread Andrew Dolman
I just tested this on my windows setup and you're right - it appears to draw 2 solid circles and if you save as .png or .jpeg that's what you get in the resultant file - but if you save as .ps or .pdf you get a dashed outer circle. I don't know why. Andy. R 2.8.1 andydol...@gmail.com 2009/4

Re: [R] problem with symbol function

2009-04-27 Thread Joshua Wiley
I am running SP3. You said earlier that you were having trouble downloading 2.9.0, are you sure everything downloaded and installed properly? There have been some questions about transitioning to the new build going around. Joshua Wiley Original message >Date: Mon, 27 Apr 2009 22:45

Re: [R] problem with symbol function

2009-04-27 Thread Christophe Dutang
This point is ok if I download R from the Austrian mirror. R is properly install on both computers. I also get this strange behavior with R 2.7.2. There is something I'm missing... Le 27 avr. 09 à 22:54, Joshua Wiley a écrit : I am running SP3. You said earlier that you were having trouble

Re: [R] Generate ramified structures

2009-04-27 Thread Bert Gunter
Don't know, but try checking the "Graphical Models" Task View on CRAN. -- Bert Gunter > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Talita Perciano > Sent: Monday, April 27, 2009 1:38 PM > To: r-help@r-project.org; R help >

[R] The .tex version of the manual in foo.Rcheck

2009-04-27 Thread BXC (Bendix Carstensen)
In version 2.8.1, running Rcmd check on the package foo would leave the file foo-manual.tex in the folder foo.Rcheck. But as of 2.9.0 only foo-manual.pdf and foo-manual.log are there. Is this intentional? Anyway it is inconvenient, because I would occasionally like to include the manual at the

Re: [R] problem with symbol function

2009-04-27 Thread Christophe Dutang
what is your service pack version? at home I use the SP2 version. Le 27 avr. 09 à 22:29, Joshua Wiley a écrit : Hi Christophe, I am able to plot dashed circles on Windows. I'm afraid I do not have any suggestions for you. What happens when you try to plot it on Windows? Joshua Wiley

Re: [R] Julia set in R

2009-04-27 Thread Henrique Dallazuanna
See this: http://fractalswithr.blogspot.com/ On Mon, Apr 27, 2009 at 5:34 PM, Talita Perciano wrote: > Hi, > > I'm really interested in Julia sets too... If there is a R code for > that I would like to know! > > Talita > > 2009/4/27 Erin Hodgess > > > > Dear R People: > > > > Has anyone produ

Re: [R] Julia set in R

2009-04-27 Thread Talita Perciano
Hi, I'm really interested in Julia sets too... If there is a R code for that I would like to know! Talita 2009/4/27 Erin Hodgess > > Dear R People: > > Has anyone produced code for a Julia set, please? > > It's not all that tough to do, just thought I'd check before > re-inventing the wheel. >

[R] Generate ramified structures

2009-04-27 Thread Talita Perciano
Hello, I would like to generate ramified structures like plant root systems, river networks or trees and save the generated structure as an image. Does anyone knows if there is a way to do that with R? Thank you in advance, Talita -- Talita Perciano Instituto de Matemática e Estatísitca Univer

Re: [R] problem with symbol function

2009-04-27 Thread Christophe Dutang
it just plot solid lines? I also have a similar problem on my PC at the office, which run XP pro... Le 27 avr. 09 à 22:29, Joshua Wiley a écrit : Hi Christophe, I am able to plot dashed circles on Windows. I'm afraid I do not have any suggestions for you. What happens when you try to plot

Re: [R] problem with symbol function

2009-04-27 Thread Joshua Wiley
Hi Christophe, I am able to plot dashed circles on Windows. I'm afraid I do not have any suggestions for you. What happens when you try to plot it on Windows? Joshua Wiley Original message >Date: Mon, 27 Apr 2009 22:15:53 +0200 >From: r-help-boun...@r-project.org (on behalf of Chris

Re: [R] Bumps chart in R

2009-04-27 Thread Andreas Christoffersen
I am sorry - but maybe someone will help me with the final puzzle. How to remove the legend from the qplot? I can google my way to something like sc <- scale_fill_continuous() s...@legend <- FALSE but qplot(year, value, data = data, xlab="År",ylab="% i ekstrem fattigdom", geom = "line", group =

[R] problem with symbol function

2009-04-27 Thread Christophe Dutang
Hi all, I use the symbol functions to draw circles. But the argument lty does not work on windows but works correctly on my macbook: x <- -4:4 y <- -4:4 plot(x,y,type="n") symbols(0, 0, add = TRUE, circles = 1, inches = 1, fg="black", lty="solid") symbols(0, 0, add = TRUE, circles = 1, inc

[R] downloading r 2.9.0

2009-04-27 Thread christophe dutang
Hi all, I try to download R 2.9.0 from French mirrors... but the download stops mysteriously at 13.2 MB of the 65MB file. I get this both on my mac and my PC... does anyone face this problem? Christophe -- Christophe DUTANG Ph. D. student at ISFA [[alternative HTML version deleted]]

Re: [R] rounding problem

2009-04-27 Thread Emmanuel Charpentier
Seconded ! Emmanuel Charpentier Le lundi 02 mars 2009 à 21:06 -0700, Greg Snow a écrit : > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > > project.org] On Behalf Of Prof Brian Ripley > > Sent: Monday, March

Re: [R] Multiple imputations : wicked dataset. Need advice for follow-up to a possible solution.

2009-04-27 Thread Emmanuel Charpentier
Answering to myself (for future archive users' sake), more to come (soon) : Le jeudi 23 avril 2009 à 00:31 +0200, Emmanuel Charpentier a écrit : > Dear list, > > I'd like to use multiple imputations to try and save a somewhat badly > mangled dataset (lousy data collection, worse than lousy monito

[R] Grouping multiple runs of multiple datasets in lattice's xyplot

2009-04-27 Thread Daniel Kornhauser
Hi: I don't know if my explanation below is clear, so afterwards, I wrote a small a self contained annotated example that generates two plots. I execute simulations with different parameters settings that create several datasets, and for each parameter setting (or dataset) I can obtain different r

[R] Changing color of points in violin plot

2009-04-27 Thread John Poulsen
Hello, I am trying to graph a violin plot like the example in panel.violin(lattice) with the singer data - see below Does anyone know how to change the color of the boxplot on the graph from blue to green? I tried a number of changes, but to no avail. Thanks for your help, John bwplot(v

[R] FW: Install of R 2.9.0

2009-04-27 Thread Lyman, Mark
I have just received some additional information. After the "No space left on device", there are many file not found error messages. Also, the first time or two our admin ran the install process R would not start. Now R can start up despite all of the error messages. Can these error messages be ign

Re: [R] Bumps chart in R

2009-04-27 Thread Andreas Christoffersen
> Or just add the text layer separately: > > qplot(year, value, data = data, geom = "line", group = countries) + >  geom_text(aes(label = countries), subset = .(year == 1990), >    hjust = 1, size = 3, lineheight = 1) THX a lot! The subset did not work for me, but this does: subset(data,year == 19

Re: [R] How to get rid of loop?

2009-04-27 Thread Martin Morgan
Uwe Ligges writes: > Ken-JP wrote: >> The code below shows what I'm trying to get rid of. >> If there is no way to get rid of the loop, I will try to use >> package( inline >> ). >> I'm just curious as to whether there is a "vector way" of doing this >> algorithm. > > > I don't see a vector way.

[R] FW: Install of R 2.9.0

2009-04-27 Thread Lyman, Mark
I am forwarding the below message from our sys-admin because I don't know what the problem is. We are getting a "No space left on device" error when there is plenty of space. See below. Mark Lyman From: Palmer, Michael Sent: Monday, April 27, 2009 12:09 PM To: Lyman, Mark Subject: Install

[R] problem with Power function on a power my result is "inf"

2009-04-27 Thread Alessandro
Dear user, I have a problem with a power because after a value the result is "inf" Mydata <- data.frame(plot=c(11,12,13,14,15, 16, 21, 22, 23, 24, 25, 26, 31, 32,33, 34), SumH=c(17573.029,22572.162,19659.984,13952.781,6996.924,16049.598,13869.409, 8284.981,7752.961,18901.742,11078.659

[R] Julia set in R

2009-04-27 Thread Erin Hodgess
Dear R People: Has anyone produced code for a Julia set, please? It's not all that tough to do, just thought I'd check before re-inventing the wheel. Thanks, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: erin

Re: [R] A way to get the R data stored temporarily in working memory?

2009-04-27 Thread Friedericksen
Hey, that is very cool! But there is a problem: I use Emacs with ESS. When I press ESC, I get some emacs keybinding. What is R doing when I press ESC? Which function is then executed? I think it should also work with ESS, but I have to press the specific keybinding. Thank you very much for t

Re: [R] equation on graph

2009-04-27 Thread Matthieu Dubois
see ?plotmath and ?bquote HTH, Matthieu __ 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, repr

Re: [R] Problem with R 2.9.0 vs. R2.8.1 with eith er "survival" package or "predict" function

2009-04-27 Thread Dieter Menne
Dimitri Liakhovitski gmail.com> writes: > > Just wanted to alert everyone regarding a problem that I only > experience with R2.9.0 and not with R2.8.1 when I run both using > exactly the same script and the same data. > Here is what I do with my data "MyData", 2 predictors (V1 and V2) and > my s

Re: [R] Multiple Imputation in mice/norm

2009-04-27 Thread Bert Gunter
Folks: A comment ... subject to vigorous refutation, since it's jmui (just my uninformed opinon). It strikes me that this is a case where one may need own up to the limitations of the data and be transparent about the tentativeness of the statistical approaches. I say this because the statistical

Re: [R] For Loop Syntax

2009-04-27 Thread jim holtman
What do you expect this statement to do: trial[i] <- data.frame(A2$`i`) what is `i` supposed to mean? What is it that you want to do? On Mon, Apr 27, 2009 at 10:25 AM, Bronagh Grimes wrote: > Hi there, > > > > Just wondering if someone can help me with the correct syntax to use > with fo

[R] Problem with R 2.9.0 vs. R2.8.1 with either "survival" package or "predict" function

2009-04-27 Thread Dimitri Liakhovitski
Just wanted to alert everyone regarding a problem that I only experience with R2.9.0 and not with R2.8.1 when I run both using exactly the same script and the same data. Here is what I do with my data "MyData", 2 predictors (V1 and V2) and my survival DV "Depvar": library(survival) model<-coxph(De

Re: [R] A way to get the R data stored temporarily in working memory?

2009-04-27 Thread Kenn Konstabel
You can interrupt the loop (e.g.. by pressing ESC), look at the results, and then start it again. e.g. mumbo <- list() for(jumbo in 1:1e+5000) { mumbo[[jumbo]] <- do.many.time.consuming.things.with(jumbo) } # wait for a few days # then press save(mumbo, file="head of mumbo") # now

Re: [R] prediction intervals (alpha and beta) for model average estimates from binomial glm and model.avg (library=dRedging)

2009-04-27 Thread David Winsemius
On Apr 27, 2009, at 3:19 AM, Michelle Ensbey wrote: Thanks for your swift reply I'm sorry to say that I tried that, and it doesn't appear to work for predicting from the "model.avg" object (ouput). Model.avg is a model averaging function in dRedging. I am NOT trying to predict from the c

Re: [R] A way to get the R data stored temporarily in working memory?

2009-04-27 Thread Friedericksen
But maybe from the outside? Duncan Murdoch wrote: On 4/27/2009 10:18 AM, Friedericksen wrote: Hey, thank you guys for your responses.The problem is, R is already running on the loop. So I don't see a way to use save() oder save.image() (or any other function?!) You would have had to have pu

Re: [R] Merging data frames, or one column/vector with a data frame filling out empty rows with NA's

2009-04-27 Thread stephenb
You are exceeding your max memory here, so R will not be able to do that. dump both tables into a db such as mysql and then run the query either from RMySQL or from mysql directly. then output the result and import back in R. that will take care of the merge, but not sure what will happen when y

[R] equation on graph

2009-04-27 Thread Agus Susanto
Dear all, I want to write regression equation on R graph by taking the actual values of the regression coefficients. I have problem when writing X^2 (printed as X superscripts 2). I know there's a function "expression" but still no luck to use it in this case. Below is the R code as an example: p

[R] PLS Y scores (orthogonal scores algorithm)

2009-04-27 Thread L. Shyamal
Can someone make the following change to http://cran.r-project.org/web/packages/pls/index.html Line 68: oscorespls.fit.R (2.1-0) from if (nresp == 1) break # pls1: no iteration to if (nresp == 1) { u.a <- Y %*% q.a /

Re: [R] Bumps chart in R

2009-04-27 Thread hadley wickham
] > library(ggplot2) > qplot(year,value, data=data,label=countries, geom=c("line","text"), > group=countries, col=countries) > > But I would like to have the text labels show only once - e.g. at 1990 > - and also control the size of the text. In my crude qplot, setting > size=2 e.g. changes not onl

Re: [R] integrate lgamma from 0 to Inf

2009-04-27 Thread JLucke
IMHO, you should consult an advanced text on calculus with integration over infinite intervals, so that you understand what you are trying to do. Joseph F. Lucke Senior Statistician Research Institute on Addictions University at Buffalo State University of New York 1021 Main Street Buffalo, NY 1

Re: [R] A way to get the R data stored temporarily in working memory?

2009-04-27 Thread Duncan Murdoch
On 4/27/2009 10:18 AM, Friedericksen wrote: Hey, thank you guys for your responses.The problem is, R is already running on the loop. So I don't see a way to use save() oder save.image() (or any other function?!) You would have had to have put these in your loop. If it's running now, there's

Re: [R] integrate lgamma from 0 to Inf

2009-04-27 Thread Stavros Macrakis
On Wed, Apr 22, 2009 at 3:28 AM, Andreas Wittmann wrote: > i try to integrate lgamma from 0 to Inf. Both gamma and log are positive and monotonically increasing for large arguments. What can you conclude about the integrability of log(gamma(x))? -s __

Re: [R] large factorials

2009-04-27 Thread JLucke
The modified function I presented contains a stupid error, which is corrected below. sum1 <- function(l,u,t,i,n,w,tol=.Machine$double.xmin) { v <- 0 v2 <- 1 for (m in 0 :w & v2 > tol) { v1 <- ((u^(1/2))*(l^(1/2))*t)^(i-n+2*m) v2 <- exp(-lgamma(i-n+m+1)-lgamma(m+1)) v3 <- v1*v2 v <- v+v3 } re

[R] For Loop Syntax

2009-04-27 Thread Bronagh Grimes
Hi there, Just wondering if someone can help me with the correct syntax to use with for loops? I have split my original file by count, & wish to first of all assign new tables based on the splits. Then I just want to create a new variable. Please see code below. This code works outsid

Re: [R] A way to get the R data stored temporarily in working memory?

2009-04-27 Thread Friedericksen
Hey, thank you guys for your responses.The problem is, R is already running on the loop. So I don't see a way to use save() oder save.image() (or any other function?!) Greetings Duncan Murdoch wrote: On 4/27/2009 8:52 AM, Friedericksen wrote: Hey guys, I have a problem: I created a silly f

Re: [R] A way to get the R data stored temporarily in working memory?

2009-04-27 Thread Andrew Dolman
Using write() with append=T should work. Just be careful not to open the text file with a program that will lock it while the loop is still running. Text editors will not usually lock the file so in windows you could use notepad to take a look at the output and copy/paste to somewhere else. e.g.

[R] ANN: RHIPE 0.1

2009-04-27 Thread Saptarshi Guha
Hello, I'd like to announce the release of the 0.1 version of RHIPE -R and Hadoop Integrated Processing Environment. Using RHIPE, it is possible to write map-reduce algorithms using the R language and start them from within R. RHIPE is built on Hadoop and so benefits from Hadoop's fault tolerance,

Re: [R] large factorials

2009-04-27 Thread JLucke
I am late to this discussion so I apologize if what I say has already been noted. The function below does NOT require large factorials, but very small reciprocal of factorials. Thus if v2 would be replaced with something like exp(-lgamma(i-n+m+1)-lgamma(m+1)) and checked for underflow (ie .M

Re: [R] Bumps chart in R

2009-04-27 Thread Andreas Christoffersen
> Hi Andreas, > Not too hard. Try this: Amazing! - a bump.plot function - so cool. I love it when I simultaneously realize the power of R and my own limitations with R. I must learn how to write my own functions (suggestions for good introduction are very welcome) But: When I run the following bu

Re: [R] A way to get the R data stored temporarily in working memory?

2009-04-27 Thread Duncan Murdoch
On 4/27/2009 8:52 AM, Friedericksen wrote: Hey guys, I have a problem: I created a silly for loop without saving the results on each step. After a while I realised that it will take days to finish the loop until I get the results. Is there a way to get the data R saves in working memory or i

Re: [R] A way to get the R data stored temporarily in working memory?

2009-04-27 Thread ONKELINX, Thierry
Have a look at ?save and ?load. Those function will allow you to save an R object to a file and reload it when needed. HTH, Thierry ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for

[R] A way to get the R data stored temporarily in working memory?

2009-04-27 Thread Friedericksen
Hey guys, I have a problem: I created a silly for loop without saving the results on each step. After a while I realised that it will take days to finish the loop until I get the results. Is there a way to get the data R saves in working memory or in a temporary file while runing the loop? S

Re: [R] refit with binomial model (lme4)

2009-04-27 Thread Douglas Bates
This is related to using the matrix form of the response for a binomial glmm. The refit method for a model fit by lmer is based on a numeric vector response. Is it possible to use the expanded form (i.e. a vector of 0/1 values) of the responses instead of the matrix form? On Mon, Apr 27, 2009 at

Re: [R] integrate lgamma from 0 to Inf

2009-04-27 Thread JLucke
I am late to this discussion so forgive me if I am being redundant. It appears to me that the integral from 0 to infinity of log-gamma may diverge to infinity. Equation 6.1.50 of Abramowitz & Stegun shows that a re-expression of lnGamma(x) and the Stirling approximation involves (x-1/2)*log(x

Re: [R] Bumps chart in R

2009-04-27 Thread Jim Lemon
Andreas Christoffersen wrote: Hi there, I would like to make a 'bumps chart' like the ones described e.g. here: http://junkcharts.typepad.com/junk_charts/bumps_chart/ Purpose: I'd like to plot the proportion of people in select countries living for less then one USD pr day in 1994 and 2004 resp

Re: [R] series at low freq expanded into high freq

2009-04-27 Thread Gabor Grothendieck
I think you are assuming the version of mm prior to turning it into a zoo object. If mm is a zoo object, as in the question, then see my last post. On Mon, Apr 27, 2009 at 7:55 AM, wrote: > Hmm, silly of me. I have the solution, after some mucking about with > coercion and so on: > >> xx <- zoo(

[R] refit with binomial model (lme4)

2009-04-27 Thread Eric Elguero
Dear R users, I'm trying to use function 'refit' from lme4 and I get this error that I can't understand: > refit(dolo4.model4,cbind(uu,50-uu)) Error in function (classes, fdef, mtable) : unable to find an inherited method for function "refit", for signature "mer", "matrix" if I try: > refit

Re: [R] series at low freq expanded into high freq

2009-04-27 Thread Gabor Grothendieck
Try this: > library(zoo) > mm <- c(15, 10, 12, 13, 11) > names(mm)<-c("Nov 2008", "Dec 2008", "Jan 2009", "Feb 2009", "Mar 2009") > library(zoo) > mm <- zoo(mm, order.by = as.yearmon(names(mm), format="%b %Y")) > > dd <- as.Date(c("03/11/2008", "05/11/2008", + "04/01/2009","02/02/2009","17/02

Re: [R] how to install R really *locally*?

2009-04-27 Thread Oliver Kullmann
Thanks, but this wasn't my problem (I already use --vanilla when *calling* R): The problem is how to get a "vanilla" *installation* (as I said, it was the installation which failed, not later running R, and this failure was caused by the file HOME/.RProfil). Hope that's clearer now. Thanks anywa

Re: [R] Vector of matrix

2009-04-27 Thread Duncan Murdoch
On 4/27/2009 8:01 AM, Romildo Martins wrote: Hello, To specify a vector of matrices in R (which may have different sizes)? M1 <- matrix(1,1,1) M2 <- matrix(2,2,2) vec <- list(M1, M2) Thanks a lot! Romildo [[alternative HTML version deleted]] __

[R] Vector of matrix

2009-04-27 Thread Romildo Martins
Hello, To specify a vector of matrices in R (which may have different sizes)? Thanks a lot! Romildo [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the post

Re: [R] series at low freq expanded into high freq

2009-04-27 Thread Murali.MENON
Hmm, silly of me. I have the solution, after some mucking about with coercion and so on: > xx <- zoo(mm[as.character(as.yearmon(dd))], order.by = dd) > xx 2008-11-03 2008-11-05 2009-01-04 2009-02-02 2009-02-17 2009-03-13 2009-03-14 2009-03-18 2009-03-26 15 15 12 1

  1   2   >