Re: [R] 2 docker containers with R ?

2020-04-11 Thread Bogdan Tanasa
thanks a lot, Ashim, and Ivan ! On Sat, Apr 11, 2020 at 4:25 AM Ashim Kapoor wrote: > Dear Bogdan, > > Perhaps > > https://rstudio.github.io/packrat/ > > can be of help? > > Best, > Ashim > > On Sat, Apr 11, 2020 at 4:47 PM Ivan Krylov wrote: > >> On Sat, 11 Apr 2020 03:44:51 -0700 >> Bogdan Ta

Re: [R] Having trouble understanding the sapply/vapply documentation and behaviour of USE.NAMES

2020-04-11 Thread Rolf Turner
On 12/04/20 6:09 am, Martin Maechler wrote: Rolf Turner on Fri, 10 Apr 2020 12:23:49 +1200 writes: > IMHO there is an error in the documentation here. Clearly > USE.NAMES has a different impact on vapply() than it has > on sapply() and the documentation does not indi

[R] setting serialization

2020-04-11 Thread Glenn Schultz via R-help
All, I have a set up as shown below.  Everything works fine but the new serialization default is 3, I would like it to serialize to version = 2.  I've tried a couple of different ways to set version and googled around but so far I've had no luck.  The package builds fine but then sets dependen

Re: [R] Add Gauss normal curve ?

2020-04-11 Thread Daniel Nordlund
Just replace 'mean(y)' in your curve() function with as.Date("whatever-date") curve(n*dnorm(x, as.Date("2020-03-30"), sd(y)), add=TRUE, col="red", lwd=2) Dan On 4/11/2020 8:36 AM, varin sacha via R-help wrote: Dear Peter, Dear David, Many thanks for your response. Indeed, counts do not have

Re: [R] Having trouble understanding the sapply/vapply documentation and behaviour of USE.NAMES

2020-04-11 Thread Martin Maechler
> Rolf Turner > on Fri, 10 Apr 2020 12:23:49 +1200 writes: > On 10/04/20 10:59 am, petr smirnov wrote: >> I am having trouble parsing the documentation for sapply >> and vapply, and I cannot understand if it explains the >> different behaviour of USE.NAMES between the

Re: [R] Add Gauss normal curve ?

2020-04-11 Thread varin sacha via R-help
Dear Peter, Dear David, Many thanks for your response. Indeed, counts do not have a Gaussian distribution, even if sometimes one approximates the distribution by a Gaussian one, usually using the argument of the Central Limit Theorem. Here below the reproducible example. One last thing.

Re: [R] Add Gauss normal curve ?

2020-04-11 Thread peter dalgaard
Two obvious problems: 1. mean(nc) is a count, not a date, sd likewise 2. the scale of dnorm() is density, not count So (slightly inefficient, but who cares...): y <- rep(mydates, nc) n <- sum(nc) curve(n*dnorm(x, mean(y), sd(y)), add=TRUE, col="red", lwd=2) -pd > On 11 Apr 2020, at 16:00 , va

Re: [R] Add Gauss normal curve ?

2020-04-11 Thread David Winsemius
On 4/11/20 7:00 AM, varin sacha via R-help wrote: Dear R-experts, Here below my reproducible example. I would like to fit/add the Gauss normal curve to this data. I don't get it. There is no error message but I don't get what I am looking for. Many thanks for your help. #

Re: [R] matching doesn't work

2020-04-11 Thread Rasmus Liland
On 2020-04-10 19:05 -0500, Ana Marija wrote: > I am not sure what I am suppose to run > from your codes. Can you just send me > lines of codes which I should run? > (without part where you are loading > your data frames) (assuming my files > are as I showed them) Dear Ana, try these lines:

[R] Add Gauss normal curve ?

2020-04-11 Thread varin sacha via R-help
Dear R-experts, Here below my reproducible example. I would like to fit/add the Gauss normal curve to this data. I don't get it. There is no error message but I don't get what I am looking for. Many thanks for your help. mydates <-

Re: [R] question about system.file()

2020-04-11 Thread Jeff Newmiller
Only you have the power to solve your problem. Follow the instructions in the footer of any R-help email. On April 10, 2020 8:33:41 PM PDT, Anand Menon wrote: >Hello, Could you please help unsubscribe me from these emails. Thank >you. > >Kind Regards, >Anand K Menon >Cell: 1-416-939-3671 > > >On

Re: [R] 2 docker containers with R ?

2020-04-11 Thread Ashim Kapoor
Dear Bogdan, Perhaps https://rstudio.github.io/packrat/ can be of help? Best, Ashim On Sat, Apr 11, 2020 at 4:47 PM Ivan Krylov wrote: > On Sat, 11 Apr 2020 03:44:51 -0700 > Bogdan Tanasa wrote: > > > how could I have Seurat2 and Seurat3 on the same machine > > What I would try first is to

Re: [R] 2 docker containers with R ?

2020-04-11 Thread Ivan Krylov
On Sat, 11 Apr 2020 03:44:51 -0700 Bogdan Tanasa wrote: > how could I have Seurat2 and Seurat3 on the same machine What I would try first is to install Seurat2 and Seurat3 in separate library directories: add the `lib` argument to install.packages when installing a given version and `lib.loc` wh

[R] 2 docker containers with R ?

2020-04-11 Thread Bogdan Tanasa
Dear all, we wish everyone a safe and healthy time ! i'm looking forward to have you suggestions please : I am using a R package that is called Seurat for scRNA-seq analysis (https://satijalab.org/seurat/) that has two versions (version 2 or version3 with distinct functions); i'd appreciate if y

Re: [R] question about system.file()

2020-04-11 Thread Rui Barradas
Hello, There are instructions to unsubscribe at the bottom of this e-mail and of every R-Help e-mail, see the all capital letters word. Hope this helps, Rui Barradas Às 04:33 de 11/04/20, Anand Menon escreveu: Hello, Could you please help unsubscribe me from these emails. Thank you. Kind R

Re: [R] question about system.file()

2020-04-11 Thread Anand Menon
Hello, Could you please help unsubscribe me from these emails. Thank you. Kind Regards, Anand K Menon Cell: 1-416-939-3671 On Fri, Apr 10, 2020 at 3:46 PM Ana Marija wrote: > Hello, > > I would like to try this example in this link: > > https://www.rdocumentation.org/packages/SNPRelate/version