Re: [R] Convert time zone to difference from Coordinated Universal Time

2014-09-03 Thread Prof Brian Ripley
On 04/09/2014 02:27, tim.willi...@ucb.com wrote: Hello everyone, I want to convert times provided by Sys.time() to use the difference from Coordinated Universal Time instead of the character abbreviation. For example, instead of: 2014-09-03 21:12:35 EDT I want the value as: 2004-09-03 13:20

Re: [R] GLM Help

2014-09-03 Thread peter dalgaard
I think you are looking for ~ Region + Region:Helpers - 1 a.k.a. ~ Region/Helpers - 1 Notice that these are actually the same model as your glm3 (and also as ~Region*Helpers), only the parametrization differs. The latter includes an overall Helpers term so that the interaction coefficients s

[R] Convert time zone to difference from Coordinated Universal Time

2014-09-03 Thread Tim.Williams
Hello everyone, I want to convert times provided by Sys.time() to use the difference from Coordinated Universal Time instead of the character abbreviation. For example, instead of: 2014-09-03 21:12:35 EDT I want the value as: 2004-09-03 13:20:00-04:00 Is there a way to do this with strftime(

[R] The newest version of Rstudio Desktop v0.98.1049 couldn't be installed

2014-09-03 Thread PO SU
Dear expeRts,    I find the newest Rstudio Desktop v0.98.1049  for windows is not newest, after i installed, it was a old version. -- PO SU mail: desolato...@163.com Majored in Statistics from SJTU __ R-help@r-project.org mailing list https://sta

Re: [R] snow/Rmpi without MPI.spawn?

2014-09-03 Thread Leek, Jim
I spoke a bit too soon. You may have noticed that it isn't hanging in parSapply, it's hanging in mpi.spawn.Rslaves(). It claims to have launched the slaves, but I can't see them by logging into the target node and running 'top'. I only see the top level R process (which is burning up 100% of

Re: [R] snow/Rmpi without MPI.spawn?

2014-09-03 Thread Leek, Jim
Thanks for the tips. I'll take a look around for for loops in the morning. I think the example you provided worked for OpenMPI. (The default on our machine is MPICH2, but it gave the same error about calling spawn.) Anyway, with OpenMPI I got this: > # salloc -n 12 orterun -n 1 R -f spawn.R

Re: [R] depth of labels of axis

2014-09-03 Thread Jinsong Zhao
On 2014/9/3 21:33, Jinsong Zhao wrote: On 2014/9/2 11:50, David L Carlson wrote: The bottom of the expression is set by the lowest character (which can even change for subscripted letters with descenders. The solution is to get axis() to align the tops of the axis labels and move the line up to

Re: [R] depth of labels of axis

2014-09-03 Thread Jinsong Zhao
On 2014/9/2 11:50, David L Carlson wrote: The bottom of the expression is set by the lowest character (which can even change for subscripted letters with descenders. The solution is to get axis() to align the tops of the axis labels and move the line up to reduce the space, e.g. plot(1:5, xax

Re: [R] depth of labels of axis

2014-09-03 Thread Jinsong Zhao
On 2014/9/1 20:39, David Winsemius wrote: On Sep 1, 2014, at 4:40 PM, Jinsong Zhao wrote: Hi there, With the following code, plot(1:5, xaxt = "n") axis(1, at = 1:5, labels = c(expression(E[g]), "E", expression(E[j]), "E", expression(E[t]))) you may notice that the "E" within labels of axis(

Re: [R] Overwriting a procedure

2014-09-03 Thread Duncan Murdoch
On 03/09/2014, 8:58 PM, MacQueen, Don wrote: > If you have more than one version of fixx(), then the one that is used is > the one that comes first in the search path. The search path is revealed > by the search() function. So if you can learn to control the search path, > then you can control whic

Re: [R] Overwriting a procedure

2014-09-03 Thread MacQueen, Don
If you have more than one version of fixx(), then the one that is used is the one that comes first in the search path. The search path is revealed by the search() function. So if you can learn to control the search path, then you can control which version of fixx() is used. That would be my initial

Re: [R] snow/Rmpi without MPI.spawn?

2014-09-03 Thread Martin Morgan
On 09/03/2014 03:25 PM, Jim Leek wrote: I'm a programmer at a high-performance computing center. I'm not very familiar with R, but I have used MPI from C, C++, and Python. I have to run an R code provided by a guy who knows R, but not MPI. So, this fellow used the R snow library to parallelize

[R] GLM Help

2014-09-03 Thread Kathy Haapala
Hi all, I have a large set of data that looks something like this, although this data frame is much smaller and includes made up numbers to make my question easier. > x.df <- data.frame(Region = c("A", "A", "A", "A", "A", "B", "B", "B", "B", > "B", "B", "C", "C", "C", "C"), Group_ID = c(1:15), N

[R] snow/Rmpi without MPI.spawn?

2014-09-03 Thread Jim Leek
I'm a programmer at a high-performance computing center. I'm not very familiar with R, but I have used MPI from C, C++, and Python. I have to run an R code provided by a guy who knows R, but not MPI. So, this fellow used the R snow library to parallelize his R code (theoretically, I'm not actua

Re: [R] wilcox.test - difference between p-values of R and online calculators

2014-09-03 Thread W Bradley Knox
Tal and David, thanks for your messages. I should have added that I tried all variations of true/false values for the exact and correct parameters. Running with correct=FALSE makes only a tiny change, resulting in W = 485, p-value = 0.0002481. At one point, I also thought that the discrepancy bet

Re: [R] wilcox.test - difference between p-values of R and online calculators

2014-09-03 Thread peter dalgaard
Notice that correct=TRUE for wilcox.test refers to the continuity correction, not the correction for ties. You can fairly easily simulate from the exact distribution of W: x <- c(359,359,359,359,359,359,335,359,359,359,359, 359,359,359,359,359,359,359,359,359,359,303,359,359,359) y <- c(3

[R] Four available places on GLMM course in Banff

2014-09-03 Thread Highland Statistics Ltd
There are four remaining places on the following course: Course: Introduction to MCMC, Linear mixed effects models and GLMM with R When: 22-26 September, 2014 Where: Parks Canada, Banff, Canada Flyer: http://www.highstat.com/Courses/Flyer2014_09Banff.pdf Course website: http://www.highstat.com/

Re: [R] shiny datatables column filtering plugin

2014-09-03 Thread Yihui Xie
It looks like a problem of DataTables -- I cannot find a way to specify the search.regex option for individual columns. You may ask this question on the DataTables forum. Basically I was expecting this to work: .DataTable({ "search": { "regex": true }, "columnDefs": [{ "search": { "regex": tru

Re: [R] shiny datatables column filtering plugin

2014-09-03 Thread Charles Determan Jr
Thank you Yihui, this would certainly work for me however I have having trouble getting the regex to work appropriately. I am using the developmental version of shiny and have copied your code. I launch the app and the filtering of numbers works fine (i.e. 4,5) but the search for setosa and versi

Re: [R] wilcox.test - difference between p-values of R and online calculators

2014-09-03 Thread David L Carlson
Since they all have the same W/U value, it seems likely that the difference is how the different versions adjust the standard error for ties. Here are a couple of posts addressing the issues of ties: http://tolstoy.newcastle.edu.au/R/e8/help/09/12/9200.html http://stats.stackexchange.com/questio

Re: [R] .C and .Fortran

2014-09-03 Thread Prof Brian Ripley
On 03/09/2014 13:28, Filippo Monari wrote: Hi, I'd like to know what is the difference between the functions .C() and .Fortran. I noticed that by enclosing my F90 subroutines in modules .Fortran() can't find them any more in the load table, while .C() still can. I also checked that the subroutine

Re: [R] shiny datatables column filtering plugin

2014-09-03 Thread Yihui Xie
The built-in version of DataTables in shiny has already supported numeric ranges. For a numeric column x in data, if you type a,b in the search box, the data will be filtered using a <= x <= b. The check boxes are not supported, but you can use regular expressions (more flexible) to achieve the sam

Re: [R] wilcox.test - difference between p-values of R and online calculators

2014-09-03 Thread David L Carlson
That does not change the results. The problem is likely to be the way ties are handled. The first sample has 25 values of which 23 are identical (359). The second sample has 26 values of which 12 are identical (359). The difference between the implementations may be a result of the way the ties

[R] predictNLS {propagate} bug for multiple predictors?

2014-09-03 Thread Patrick Gauthier
Many R users have requested means to generate prediction/confidence intervals for their non-linear models in R. The propagate packages offers this service. However, I'm having issues when applying predictNLS to my model. Has anyone else had issues with predictNLS? Here is my simple problem. t <-

[R] strange date format after extracting calendar data with RSQLite

2014-09-03 Thread Nuno Prista
Hi, I have recently downloaded RSQLite with intention of using it to access googlecalendar data stored in Thunderbird "cache.sqlite" and "local.sqlite". Thunderbird exports the data just fine as a .ics file but when I access it directly from R using RSQLite function "dbGetQuery" I get strange

Re: [R] frequencies of a discrete numeric variable, including zeros

2014-09-03 Thread Michael Friendly
Thanks to all who replied to this thread. To summarize, John Fox and William Dunlap's suggestion amounts to this plot, where it becomes *crucial* to eliminate the zeros (otherwise they would not be distinguishable from the counts of 1, with points()): # Fox/Dunlap plot, using plot.table metho

[R] .C and .Fortran

2014-09-03 Thread Filippo Monari
Hi, I'd like to know what is the difference between the functions .C() and .Fortran. I noticed that by enclosing my F90 subroutines in modules .Fortran() can't find them any more in the load table, while .C() still can. I also checked that the subroutine was loaded with the is.loaded() function

Re: [R] shiny datatables column filtering plugin

2014-09-03 Thread Charles Determan Jr
Thank you for checking Yihui, on the off chance are you familiar with any other methods to filter on multiple conditions? On Tue, Sep 2, 2014 at 11:07 PM, Yihui Xie wrote: > I just tested it and this plugin does not seem to work with the new > .DataTable() API in DataTables 1.10.x, so I guess i

Re: [R] wilcox.test - difference between p-values of R and online calculators

2014-09-03 Thread Tal Galili
It seems your numbers has ties. What happens if you run wilcox.test with correct=FALSE, will the results be the same as the online calculators? Contact Details:--- Contact me: tal.gal...@gmail.com | Read me: www.talgalili.com (H

[R] favorable mention and use of R on the net

2014-09-03 Thread Ross Boylan
http://equitablegrowth.org/2014/08/26/moving-corrected-calculations-last-weeks-shiller-stock-market-posts-r-afternoon-note/ Begins > Because only people who really, really, really want to make bad > mistakes do things in the un-debuggable Excel (or Numbers)… > and then proceeds with an extended