Re: [R] Help needed with aggregate or other solution

2017-10-26 Thread Anthoni, Peter (IMK)
Hi Thomas, Would this work: res1=aggregate(dta[,"fcst"],by=list(basistime=dta[,"basistime"]),FUN=max) mm=match(paste(res1[,"basistime"],res1[,"x"]),paste(dta[,"basistime"],dta[,"fcst"])) dta[mm,] > dta[mm,] date basistime fcst usgs 20 2012-01-30 12:00:00 2012-01-25 15:0

Re: [R] Help_urgent_how to calculate mean and sd in biomod 2

2017-10-26 Thread Rui Barradas
Olá, Please keep this in the list, I'm cc-ing r-help@r-project.org. And yes, I am Portuguese but R-Help is a mailing list in the English language. As for your new question, I believe that you should start a new thread. This is completely different from the question on computing mean and sd.

[R] Error in UseMethod("xmlAttrs", node) : no applicable method for 'xmlAttrs' applied to an object of class "NULL"

2017-10-26 Thread Clifton B. Sothoron Jr.
I'm running R 3.4.1 on Linux. I'm getting the following error message. Error in UseMethod("xmlAttrs", node) : no applicable method for 'xmlAttrs' applied to an object of class "NULL" Calls: rdKMeans -> rdLoadModel -> xmlAttrs This appears to be a known issue in R Linux that was supposed to be p

Re: [R] nomogram function error

2017-10-26 Thread David Winsemius
> On Oct 26, 2017, at 9:42 AM, Annalisa VanderWyden via R-help > wrote: > > > Hi R-help, > > > > I have fit a cox ph model to my data, but have beenreceiving an error when > trying to fit a model to the nomogram. Here is the codeand corresponding > error: > > > > > >> nomogramCF =

Re: [R] Changes in code_plot

2017-10-26 Thread Bert Gunter
You are using R's traditional graphics engine. All of your queries are answered by ?par (where, for example, you can set plot size) and ?plot.default (where, for example, you can change font sizes, e.g. via cex). Reading the graphics sections in the "Introduction to R" tutorial that ships with R w

[R] Changes in code_plot

2017-10-26 Thread Lara Dutra Silva
Hello, I am trying to change some aspects in this code. plot(proj90PT$Acacia_EMmeanByTSS_mergedAlgo_mergedRun_mergedData, main= "Present", xlab ="x", ylab="y", cex.main=1.25, cex.lab=1.2, cex.axis=0.75, family = "arial") How can I change - font. I try family "arial" - size (exemple 14) of m

[R] nomogram function error

2017-10-26 Thread Annalisa VanderWyden via R-help
Hi R-help,   I have fit a cox ph model to my data, but have beenreceiving an error when trying to fit a model to the nomogram. Here is the codeand corresponding error:     >nomogramCF = nomogram(cph_age6_40avp4, +lp.at= seq(-10,10,by =0.5),lp = TRUE, + 

Re: [R] Help needed with aggregate or other solution

2017-10-26 Thread Daniel Nordlund
On 10/26/2017 4:58 AM, Thomas Adams wrote: Hi Jeff, Thank you for the suggestions -- I appreciate your help. Unfortunately, the result2 has two problems... (1) there are now 3 date columns (it looks like 2 cols are merged into 1 col) (2) the output rows should not have any of the basistime date

Re: [R] Help needed with aggregate or other solution

2017-10-26 Thread Jeff Newmiller
On Thu, 26 Oct 2017, Thomas Adams wrote: Hi Jeff, Thank you for the suggestions -- I appreciate your help. Unfortunately, the result2 has two problems... (1) there are now 3 date columns (it looks like 2 cols are merged into 1 col) No, there are two date columns. Result2 includes the groupin

Re: [R] R encountered a fatal error. The session was terminated. + *** caught illegal operation ***

2017-10-26 Thread peter dalgaard
Just tried upgrading on this machine (better late than never...) R gave no apparetn problems, either standalone or in RStudio 1.0.143. Newest RStudio gives me a strange warning on startup: Error in loadNamespace(name) : there is no package called ‘.GlobalEnv’ but appears to run sanely otherwise

Re: [R] R encountered a fatal error. The session was terminated. + *** caught illegal operation ***

2017-10-26 Thread peter dalgaard
Also, check whether R runs standalone, either as Rgui or in Terminal.app (just start Terminal and type "R" if you haven't tried it before.) -pd > On 26 Oct 2017, at 14:57 , David Barron wrote: > > I've seen similar issues reported on the RStudio community site: > https://community.rstudio.com/

Re: [R] R encountered a fatal error. The session was terminated. + *** caught illegal operation ***

2017-10-26 Thread David Barron
I've seen similar issues reported on the RStudio community site: https://community.rstudio.com/. You might want to check in there, as I think this may well be an RStudio issue rather than a problem with R itself. Dave On 26 October 2017 at 12:11, Eric Berger wrote: > How about going back to ea

Re: [R] Help needed with aggregate or other solution

2017-10-26 Thread Thomas Adams
Hi Jeff, Thank you for the suggestions -- I appreciate your help. Unfortunately, the result2 has two problems... (1) there are now 3 date columns (it looks like 2 cols are merged into 1 col) (2) the output rows should not have any of the basistime dates repeated (maybe I misstated the problem); I

Re: [R] How to save and restore a workspace

2017-10-26 Thread PIKAL Petr
Hi Don This is matter of opinion > By the way, this is much easier on Linux, and on Mac when working in a > Terminal (command line) environment. There is some basic menu items in RGui which is not in terminal. This could be quite confusing if you are used to have each project in separate direct

Re: [R] R encountered a fatal error. The session was terminated. + *** caught illegal operation ***

2017-10-26 Thread Eric Berger
How about going back to earlier versions if you don't need the latest ones? On Thu, Oct 26, 2017 at 12:59 PM, Klaus Michael Keller < klaus.kel...@graduateinstitute.ch> wrote: > Dear all, > > I just installed the "Short Summer" R update last week. Now, my R Studio > doesn't open anymore! > > -->

[R] R encountered a fatal error. The session was terminated. + *** caught illegal operation ***

2017-10-26 Thread Klaus Michael Keller
Dear all, I just installed the "Short Summer" R update last week. Now, my R Studio doesn't open anymore! --> R encountered a fatal error. The session was terminated. and my R terminal doesn't close properly --> *** caught illegal operation *** I restarted my Mac OS Sierra 10.12.6 and reinsta