Re: [R] R: Redefine default parameter values for help.start()

2015-04-17 Thread Martin Maechler
paul paul.domas...@gmail.com on Thu, 16 Apr 2015 18:58:12 + writes: Because of the setup of R in cygwin, help.start() requires the following parameter values: help.start(browser=cygstart,remote=R.home()) Is it possible to make these values the default? You are

Re: [R-es] Weighted Likelihood

2015-04-17 Thread Víctor Nalda Castellet
Hola Olivier, Muchísimas gracias por la ayuda, todo entendido. Con tan pocos datos no puedo pretender obtener lo que me imagino en mi cabeza. Me has ayudado mucho a entender como funcionaba, todo solucionado! Un abrazo, y gracias de nuevo. El 17 de abril de 2015, 9:58, Olivier Nuñez

Re: [R] How to calculate vif of each term of model in R?

2015-04-17 Thread PIKAL Petr
Hi I did not see any answer so I try. Your question lacks some info: Which vif - car or HH? answers and comments in line -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Methekar, Pushpa (GE Transportation, Non-GE) Sent: Wednesday, April 08, 2015

[R] [off-topic] R Homepage

2015-04-17 Thread Jinsong Zhao
Hi there, It's a off-topic post. It seems that the R home page changed a lot. There are no plot at the right frame. Why are they removed? Will it or an alternative be back in future? Another question is about the ``What's New?'' page. The latest announcement is not archived in that page. In

Re: [R] melt function chooses wrong id variable with large datasets

2015-04-17 Thread PIKAL Petr
Yes It could be. But anyway, if you wanted to melt your frame and be sure to have norm column added to months column you shall use melt(dataset, id.vars=NULL, na.rm=TRUE) construction. Without it and considering data you sent I get head(dd.m0) norm variable value 1

Re: [R] How to calculate vif of each term of model in R?

2015-04-17 Thread PIKAL Petr
Hi -Original Message- From: Methekar, Pushpa (GE Transportation, Non-GE) [mailto:pushpa.methe...@ge.com] Sent: Friday, April 17, 2015 1:12 PM To: PIKAL Petr Subject: RE: How to calculate vif of each term of model in R? Hi Petr, You got my problem ,the solution which u specified

Re: [R] How to calculate vif of each term of model in R?

2015-04-17 Thread PIKAL Petr
Did you follow my advice/comments? Cheers Petr -Original Message- From: Methekar, Pushpa (GE Transportation, Non-GE) [mailto:pushpa.methe...@ge.com] Sent: Friday, April 17, 2015 11:43 AM To: PIKAL Petr Subject: RE: How to calculate vif of each term of model in R? Car package

Re: [R] Extracting xml data to data frames

2015-04-17 Thread gavinr
Hi I will re-post using dput to recreate the xml file. I will need some time to find a small enough file that demonstrates the problem. Gavin R. -- View this message in context: http://r.789695.n4.nabble.com/Extracting-xml-data-to-data-frames-tp4705964p4705981.html Sent from the R help

[R-es] Integración de R y C#

2015-04-17 Thread Pedro Herrero Petisco
Hola a todos. Se me está plantendo la posibilidad de empezar a aprender C# para hacer algunos programillas (nada grande). El tema es que el otro día en un mail de esta misma lista alguien (lo siento, no recuerdo quien) puso un link a un post en el que se hablaba de la integración entre R y C#.

[R] issue with package updates

2015-04-17 Thread Iryna Nikolayeva
Dear R project members, I have an issue while automatically updating packages. For the packages installed in my second library, while automatically updating I get the following Permission denied” messages(details below). I suppose I know where this problem comes from: I had installed a few

Re: [R] Fast multiple match function

2015-04-17 Thread Keshav Dhandhania
Hi Jeff, Indeed the data.table package does provide a much cleaner way to achieve the same functionality, and a lot of other functionality as bonus. Thanks for letting me know about it. On Tue, 7 Apr 2015 at 15:41 Jeff Newmiller jdnew...@dcn.davis.ca.us wrote: You might find the data.table

[R] Are '1st decimal' R rollouts (e.g. 3.2.0) qualitatively different?

2015-04-17 Thread Assaf P. Oron
Hi all, With the upcoming 3.2.0 upgrade, the question came up among my students, how often a regular user who is not a cutting-edge developer must upgrade their R, given that on Windows/Mac this includes the inconvenience of re-installing dozens of packages. In this context, I was wondering

Re: [R-es] Integración de R y C#

2015-04-17 Thread Javier Marcuzzi
Estimado Pedro Herrero Petisco Creo que yo puse algo, no recuerdo bien pero debe ser https://rdotnet.codeplex.com/ Javier Rubén Marcuzzi El 17 de abril de 2015, 9:20, Pedro Herrero Petisco pedroherreropeti...@gmail.com escribió: Hola a todos. Se me está plantendo la posibilidad de empezar

Re: [R] R: Redefine default parameter values for help.start()

2015-04-17 Thread Paul Domaskis
Martin Maechler maechler at lynne.stat.math.ethz.ch writes: paul paul.domaskis at gmail.com on Thu, 16 Apr 2015 18:58:12 + writes: Because of the setup of R in cygwin, help.start() requires the following parameter values:

[R] R: Idea behind .First() vs. ~/.Rprofile

2015-04-17 Thread paul
I'm ramping up on R, and reading http://stuff.mit.edu/afs/sipb/project/r- project/lib/R/library/base/html/Startup.html. I'm probably wrong about this, but ~/.Rprofile seems to serve the same purpose as a .First() function. Why do both exist, and what considerations go into a decision to choose

[R] vi[m] editing of past commands in R command line

2015-04-17 Thread Paul Domaskis
I've been told that my messages are being rejected because it is being posted via nabble in HTML format. I was advised to re-send this directly to r-help@r-project.org. My apologies if you get this twice. When I use bash + readline and ~/.inputrc contains editing-mode vi, I can press v to

Re: [R] Need online version of R help pages

2015-04-17 Thread Collin Lynch
Hi Paul a quick search popped up these: http://astrostatistics.psu.edu/datasets/R/html/index.html http://finzi.psych.upenn.edu/ http://r.789695.n4.nabble.com/Online-R-documentation-td1009656.html Are they what you are looking for? Collin. On Thu, Apr 16, 2015 at 5:02 PM, paul

Re: [R] Need online version of R help pages

2015-04-17 Thread Paul Domaskis
On Fri, Apr 17, 2015 at 3:22 PM, Collin Lynch cfly...@ncsu.edu wrote: Hi Paul a quick search popped up these: http://astrostatistics.psu.edu/datasets/R/html/index.html http://finzi.psych.upenn.edu/ http://r.789695.n4.nabble.com/Online-R-documentation-td1009656.html Are they what you are

[R] project.org help mailing list the same as ethz.ch mailing list?

2015-04-17 Thread Paul Domaskis
The page http://www.r-project.org/mail.html says that the mailing list is r-help_AT_R-project.org (with @ in place of _AT_), but the gmane page http://gmane.org/list-address.php?group=gmane.comp.lang.r.general has the mailing list as r-help_AT_stat.math.ethz.ch. Are these different mailing lists?

Re: [R] R: Idea behind .First() vs. ~/.Rprofile

2015-04-17 Thread Sarah Goslee
Hi, On Thursday, April 16, 2015, paul paul.domas...@gmail.com wrote: I'm ramping up on R, and reading http://stuff.mit.edu/afs/sipb/project/r- project/lib/R/library/base/html/Startup.html. I'm probably wrong about this, but ~/.Rprofile seems to serve the same purpose as a .First() function.

Re: [R] R: Redefine default parameter values for help.start()

2015-04-17 Thread paul
Martin Maechler maechler at lynne.stat.math.ethz.ch writes: paul paul.domaskis at gmail.com on Thu, 16 Apr 2015 18:58:12 + writes: Because of the setup of R in cygwin, help.start() requires the following parameter values:

[R] Need online version of R help pages

2015-04-17 Thread paul
The help for the cygwin port of R is buggy and hides random lines of text. Consquently, I've been relying on Google, but it is often not clear how directly relevant the info is for the specific command that I'm using. For example, reshape is complicated, and has more than 1 version. Is there an

Re: [R] project.org help mailing list the same as ethz.ch mailing list?

2015-04-17 Thread Sarah Goslee
On Friday, April 17, 2015, Paul Domaskis paul.domas...@gmail.com wrote: The page http://www.r-project.org/mail.html says that the mailing list is r-help_AT_R-project.org (with @ in place of _AT_), but the gmane page http://gmane.org/list-address.php?group=gmane.comp.lang.r.general has the

Re: [R] R: Idea behind .First() vs. ~/.Rprofile

2015-04-17 Thread paul
Sarah Goslee sarah.goslee at gmail.com writes: |On Thursday, April 16, 2015, paul paul.domaskis at gmail.com |wrote: | I'm ramping up on R, and reading | http://stuff.mit.edu/afs/sipb/project/r- | project/lib/R/library/base/html/Startup.html. I'm probably wrong | about this, but ~/.Rprofile seems

Re: [R] project.org help mailing list the same as ethz.ch mailing list?

2015-04-17 Thread paul
Sarah Goslee sarah.goslee at gmail.com writes: On Friday, April 17, 2015, Paul Domaskis paul.domaskis at gmail.com wrote: The page http://www.r-project.org/mail.html says that the mailing list is r-help_AT_R-project.org (with at in place of _AT_), but the gmane page

Re: [R] Handling NA values in a if statement

2015-04-17 Thread Marc Schwartz
On Apr 17, 2015, at 5:23 PM, Luigi Marongiu marongiu.lu...@gmail.com wrote: Dear all, I have a vector with a certain range of values including infinity and NA. I would like to remove the values that are outside a given range (lower level = ll and upper level = ul) but I am getting the error

[R] Smart detection of wrap width?

2015-04-17 Thread paul
I suspect that the answer is no, but just in case, is there a way to have R detect the window width and wrap accordingly? I don't want to set an option every time I dock a window or shrink it. In my ideal paradise, R would not only format output according to window width, but it would also me to

[R] Handling NA values in a if statement

2015-04-17 Thread Luigi Marongiu
Dear all, I have a vector with a certain range of values including infinity and NA. I would like to remove the values that are outside a given range (lower level = ll and upper level = ul) but I am getting the error due to the NA values (missing value where TRUE/FALSE needed). I then included the

Re: [R] Smart detection of wrap width?

2015-04-17 Thread MacQueen, Don
A lot of this depends on what context you are running R in, e.g., Windows console, Mac console, or command line in a unix-alike. Or within ESS in emacs. Those are different interfaces supported by, to some extent, different people, and are based on the underlying capabilities provided by the

[R] Programming R to avoid loops

2015-04-17 Thread Brant Inman
I have two large data frames with the following structure: df1 id date test1.result 1 a 2009-08-28 1 2 a 2009-09-16 1 3 b 2008-08-06 0 4 c 2012-02-02 1 5 c 2010-08-03 1 6 c 2012-08-02 0 df2 id date test2.result 1 a 2011-02-03 1 2 b

Re: [R] assign variables to function output

2015-04-17 Thread MacQueen, Don
I don't disagree with the other answers, but I'd like to talk about what I see as a more underlying issue. Generally speaking, functions return the value of the last expression within them. myfun - function(x) { z - sqrt(x) 2 } Then y - myfun(7) assigns 2 to y because 2 was the last

[R] lag1.plot {astsa} vs. lag.plot {stats}

2015-04-17 Thread Paul Domaskis
I'm following http://www.stat.pitt.edu/stoffer/tsa3/R_toot.htm to ramp up on both time series and R. About 40% of the way down, the tutorial uses lag1.plot from astsa and lag.plot from stats. The positioning of the dots look different between the two. Nothing jumps out at me from the help pages

Re: [R] lag1.plot {astsa} vs. lag.plot {stats}

2015-04-17 Thread Roy Mendelssohn - NOAA Federal
Not certain which plot you are looking at, but my guess is the answer is contained somewhere here: http://www.stat.pitt.edu/stoffer/tsa3/Rissues.htm in particular perhaps issues 4-5. -Roy M. On Apr 17, 2015, at 7:30 PM, Paul Domaskis paul.domas...@gmail.com wrote: I'm following

Re: [R] Smart detection of wrap width?

2015-04-17 Thread Paul Domaskis
Yes, I found the width option in the help pages, but I was wondering if there was automatic setting of the wrapping according to the current window width. Your function works exactly as I wished. I'll probably get smarter with time (I hope) but would it be reasonably good practice to stick this

Re: [R] Need online version of R help pages

2015-04-17 Thread Duncan Murdoch
On 16/04/2015 5:02 PM, paul wrote: The help for the cygwin port of R is buggy and hides random lines of text. You've already been told not to use the Cygwin port. It's buggy in the help pages, and probably in many other respects as well. It doesn't pass the R self-tests. Don't use it.

Re: [R] Need online version of R help pages

2015-04-17 Thread Paul Domaskis
With all due respect, Duncan, I can't find the message advising against using the Cygwin port. I did find a message about the mishandling of line endings, and I've asked on the cygwin forum (as advised). As I mentioned, I'm in an environment where updates are not possible, and I'm clarifying now

Re: [R] issue with package updates

2015-04-17 Thread Jim Lemon
Hi Iryna, The two paths seem to be a user path (one beneath your home directory) and a system path (one in another branch of the directory tree). You usually have to have superuser privileges to write files in the second. In most *NIX systems you use su to become root (the superuser), and if you

Re: [R] Are '1st decimal' R rollouts (e.g. 3.2.0) qualitatively different?

2015-04-17 Thread Duncan Murdoch
On 17/04/2015 11:50 AM, Assaf P. Oron wrote: Hi all, With the upcoming 3.2.0 upgrade, the question came up among my students, how often a regular user who is not a cutting-edge developer must upgrade their R, given that on Windows/Mac this includes the inconvenience of re-installing dozens

Re: [R] issue with package updates

2015-04-17 Thread Rolf Turner
See below. On 18/04/15 12:04, Jim Lemon wrote: Hi Iryna, The two paths seem to be a user path (one beneath your home directory) and a system path (one in another branch of the directory tree). You usually have to have superuser privileges to write files in the second. In most *NIX systems you