Re: [R] File corruption?

2021-04-01 Thread Eric Berger
If your workflow involves debugging and rerunning the code, you may experience differences between starting from a clean RStudio session and simply restarting your application. This can be caused by your environment having variables, shared objects etc defined. It is generally quite quick to close

[R] File corruption?

2021-04-01 Thread giuseppacefalu
Hello, I would like to know if anyone has encounter this problem before and what they have done to solve the problem. I am not sure if the problem has to do with R itself or with RStudio. The problem is the following: sometimes when I am developing code in R, using R studio -script inside a Shin

Re: [R] cox.zph

2021-04-01 Thread Kevin Thorpe
While the statements below about cox.zph are true, plotting the cox.zph result does tell you what the HR is doing. I never use one without the other. -- Kevin E. Thorpe Head of Biostatistics, Applied Health Research Centre (AHRC) Li Ka Shing Knowledge Institute of St. Michael's Assistant Profes

Re: [R] Violin plot with mean_sdl

2021-04-01 Thread Bill Dunlap
help(stat_summary) suggests you use the fun.args=list(...) argument to pass arguments to the fun.* functions. Try replacing mult=1 by fun.args=list(mult=1). It is possible that ggplot2::stat_summary changed its behavior since that web page was written or that the web page was always wrong. -Bil

Re: [R] [EXT] Calculating the total change in shareprice over a time periond

2021-04-01 Thread e-mail ma015k3113 via R-help
Dear David, thanks so much for your time and suggestion. It has worked now. Kind regards Ahson > On 31 March 2021 at 19:17 David K Stevens wrote: > > > Mr. Blueyonder, > > There are a number of problems with this. > > 1) is the data below really in a data frame? I coerced your table into a

Re: [R] FD package_dbFD error

2021-04-01 Thread Vesna Gulin
Hi Sara, Thank you for your advice and apologies for spamming. I will try to reorganise the arguments and if it doesn't work, will try r-sig-ecology. Kind regards, Vesna On 2021-04-01 0:58, Sarah Goslee wrote: Hi, While Bert is right that this would be a good question for r-sig-ecology, I

Re: [R] pie3D.labels

2021-04-01 Thread Collins Boahen via R-help
Dear Dr. Lemon, Thank you for the rapid response and suggestions as well. BestCollins On Tuesday, March 30, 2021, 11:46:08 PM GMT+2, Jim Lemon wrote: Hi Collins, pie3D draws a pseudo-3D pie and then places 2D labels around it. If you put the labels on top of the pie, it is not going to

Re: [R] cox.zph

2021-04-01 Thread Bendix Carstensen
Further to John Sorkin's post on the cox.zph: You get test(s) of whether there is an interaction between a variable, say, sex, and time. Suppose it is significant. You will have no clue whether the M/W hazard ratio is increasing or decreasing by time. Suppose it is not significant. You will hav

Re: [R] How can certain variables be automatically excluded from being saved?

2021-04-01 Thread Ralf Goertz
Am Thu, 1 Apr 2021 08:39:45 -0400 schrieb Duncan Murdoch : > On 01/04/2021 4:05 a.m., Ralf Goertz wrote: > > Hi, > > > > after having read here about the "seed problem" I wonder if there > > is a way to automatically exclude certain variables from being > > saved when the workspace image is saved

Re: [R] How can certain variables be automatically excluded from being saved?

2021-04-01 Thread Duncan Murdoch
On 01/04/2021 4:05 a.m., Ralf Goertz wrote: Hi, after having read here about the "seed problem" I wonder if there is a way to automatically exclude certain variables from being saved when the workspace image is saved at the end of an interactive session. I have been using .First() and .Last() fo

Re: [R] How can certain variables be automatically excluded from being saved?

2021-04-01 Thread Jim Lemon
Hi Ralph, I suppose you could write a wrapper for q(): byebye<-function(drop=".Random.seed",save = "default", status = 0, runLast = TRUE) { if(drop %in% ls(all.names=TRUE)) rm(drop,pos=1) q(save=save,status=status,runLast=runLast) ) warning: untested Jim On Thu, Apr 1, 2021 at 7:05 PM Ralf Go

[R] How can certain variables be automatically excluded from being saved?

2021-04-01 Thread Ralf Goertz
Hi, after having read here about the "seed problem" I wonder if there is a way to automatically exclude certain variables from being saved when the workspace image is saved at the end of an interactive session. I have been using .First() and .Last() for ages but apparently they are of no help as .