Re: [R] Aggregate data to lower resolution

2017-01-19 Thread Adams, Jean
Milu, To get the quickest help and keep everyone in the loop, you should cc the help list. I don't understand your question. If you want the mean GDP use the mean function, if you want the sum of the GDP use the sum function. Jean On Fri, Jan 13, 2017 at 5:33 PM, Miluji Sb wrote: > Dear Jean

[R] rgl does not plot

2017-01-19 Thread George Trojan - NOAA Federal
I have installed package rgl without any problems. I can load the library, issue commands from console without any errors showing up, however I can't get anything plotted. Example session: > library(rgl) > plot3d(rnorm(100), rnorm(100), rnorm(100)) > rgl.quit() > library(rgl) > .check3d() glX 1 >

Re: [R] R studio server vs R server and Small computer to run R

2017-01-19 Thread Ista Zahn
Hi John, I don't think this is the right place to find information about RStudio or Microsoft products. If you re-phrase the question in terms of what you want to accomplish rather than whether RStudio or Microsoft is better perhaps people here will give you some suggestions. Best, Ista On Wed,

Re: [R] T tests on multiple groups

2017-01-19 Thread Jim Lemon
Hi Ed, It's little hard to work out exactly what you want, but here's a guess: esdf<-data.frame(GENO=rep(c("control","A","B","AB"),each=20), age=rep(c(10,20),40),OBS=runif(80,1,21)) for(age in c(10,20)) { for(geno in c("A","B","AB")) print(t.test(OBS~GENO,esdf[esdf$age==age & esdf$GENO %in%

[R] Hyperbola formula

2017-01-19 Thread Therneau, Terry M., Ph.D.
This simple form of a hyperbola is not well known. I find it useful for change point models: since the derivative is continuous it often behaves better in a maximizer. h1 <- function(x, b, k=3) .5 * b * (x + sqrt(x^2 + k^2)) Function h1() has asymptotes of y=0 to the left of 0 and y=x to the

Re: [R] R studio server vs R server and Small computer to run R

2017-01-19 Thread John McKown
On Wed, Jan 18, 2017 at 11:03 AM, John Sorkin wrote: > Please forgive my resending this help request. I sent it two days ago. To > date I have not received any responses. > Thank you, > John > > > I am looking for a small computer low power that I make available on the > web that will run R studi

Re: [R] reading data

2017-01-19 Thread MacQueen, Don
Try asking on R-sig-geo mailing list Also, state what package(s) you are using, and include what you have already tried. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 1/19/17, 10:53 AM, "R-help on behalf of lily li" w

[R] reading data

2017-01-19 Thread lily li
Hi R users, I'm trying to open netcdf files in R. Each nc file has daily climate measurements for a whole year, covering the whole US. How to limit the file to a specific rectangle? Thanks. [[alternative HTML version deleted]] __ R-help@r-proje

Re: [R] help using tryCatch

2017-01-19 Thread William Dunlap via R-help
The 'error' argument to tryCatch must be a function (of one argument, the exception). Its return value will be the return value of tryCatch if there is an error. Hence you should change the present error = return(TBAPrice) to error = function(exception) TBAPrice You can use error = f

[R] T tests on multiple groups

2017-01-19 Thread Ed Siefker
I have a data set with observations on groups with multiple variables. Let's call them GENO and AGE. I have control and test genotypes and two different ages. It is only meaningful to compare control and test within the same age. I'd like to get the p value for each group compared back to contro

[R] help using tryCatch

2017-01-19 Thread Glenn Schultz
All, I have  a function that I would like to return 0 or NA on unit root error but I cannot figure out how to get tryCatch to work.  I have followed the examples in the R documentation as well as some online but I am missing something.  If I added the tryCatch code I only get the error value.  

Re: [R] xvfb? cron job updates R packages, fails on some requiring X11

2017-01-19 Thread Dirk Eddelbuettel
Paul, Just prefix the command as you would with, say, /usr/bin/time. An example is here: https://github.com/RcppCore/rcpp-logs/blob/master/scripts/runRcppDepends.r#L140L-L142 from the script I use to test all Rcpp dependencies -- now over 900 -- unattended. Some packages also need OpenGL

Re: [R] xvfb? cron job updates R packages, fails on some requiring X11

2017-01-19 Thread Duncan Murdoch
On 19/01/2017 11:52 AM, Paul Johnson wrote: In Centos 7 systems, I wrote a script that runs on the cron and I notice some package updates and installs fail like this: Error : .onLoad failed in loadNamespace() for 'iplots', details: call: .jnew("org/rosuda/iplots/Framework") error: java.awt.

[R] xvfb? cron job updates R packages, fails on some requiring X11

2017-01-19 Thread Paul Johnson
In Centos 7 systems, I wrote a script that runs on the cron and I notice some package updates and installs fail like this: Error : .onLoad failed in loadNamespace() for 'iplots', details: call: .jnew("org/rosuda/iplots/Framework") error: java.awt.HeadlessException: No X11 DISPLAY variable was

Re: [R] Fwd: Need help in exporting R apriori rules to Excel

2017-01-19 Thread Sarah Goslee
Hi, You need to reply to the list as well as to me; I can't provide private R help. I don't know what more help you need: I told you what function to use, and what google search I used to find the answer. If you have additional problems you need to be more specific in your question. This link mi

Re: [R] non-parametric manova with post-hoc test

2017-01-19 Thread Bert Gunter
You really need to go to the literature. The analysis of rank transformed data has a long history going back to the 1970's/80's, at least. See, e.g. https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwjDg_uGuM7RAhWmrVQKHaYRDb0QFggcMAA&url=http%3A%2F%2Fpeople.u

Re: [R] non-parametric manova with post-hoc test

2017-01-19 Thread Bruno C
bruno.rproj...@gmail.com Em qui, 19 de jan de 2017 05:22, escreveu: > Dear Brian, > Thank you for your answer. > Another thing that came to my mind: Would it be possible just to > separately rank-transform my 3 dependent variables and then to conduct a > normal MANOVA on this data? > > > Thanks