Re: [R] Help with a third ggplot error

2019-06-18 Thread Richard O'Keefe
Nobody else has asked the obvious question: why are the data squashed together like that in the first place? why not modify the process that generates the data so that it does not do that? Jamming things together like that is not common practice with CSV files, so what does the CSV file look lik

Re: [R] Fwd: RFA Now Open: Essential Open Source Software for Science

2019-06-18 Thread Bert Gunter
This is probably a suboptimal list for your message. If you have not already done so, you should post it to R-package-devel and the Bioconductor development list, https://stat.ethz.ch/mailman/listinfo/bioc-devel . Cheers, Bert Gunter "The trouble with having an open mind is that people keep co

[R] Fwd: RFA Now Open: Essential Open Source Software for Science

2019-06-18 Thread Dario Taraborelli
Hey all, I wanted to draw your attention to a new grants program we launched today at the Chan Zuckerberg Initiative, aiming to fund *open source scientific software* with significant adoption within the life sciences and biomedical research communities. We'd love to see applications from develop

Re: [R] How to select max data according to week?

2019-06-18 Thread Bert Gunter
My apologies. I negected to cc r-help. -- Bert On Tue, Jun 18, 2019 at 11:21 AM Bert Gunter wrote: > > I assume that 2215 means year 2000, month 2, day 15. > I also assume that you want maxes for the first 2 weeks of a month, the > second 2 weeks, and any remaining days. > I also assume th

[R] cannot install gsl from source?

2019-06-18 Thread Dalthorp, Daniel via R-help
I've been working on a fairly extensive R package for a few years with ongoing testing with Travis CI. Today, though, I'm seeing an error in installing the gsl package both at Travis and from the Windows GUI: install.packages("gsl",repos = getOption("repos"), repo=NULL, type="source") # gives the

Re: [R] Help with numeric and character separation

2019-06-18 Thread Sam Charya via R-help
Hi Bert and Jeff, Thanks a lot for your response. I have been able to solve the problem with pointers added from people who responded.  My original dataset was in the form of a vector, my desired goal is to convert it into a data.frame. which I have been able to do. Thanks again for all your hel

Re: [R] Help with a third ggplot error

2019-06-18 Thread Sam Charya via R-help
Thanks a lot Boris, I tried out your worked out solution and it works just perfectly fine. No doubt I need a lot of practice with regexr and the pattern  stated by you - I will do that now. Thanks a lot for pointing me in the right direction. Appreciate it a lot. Sam.  On Monday, 17 June 2

[R] [R-pkgs] New package APFr for Average Power Function & Bayes FDR robust estimation

2019-06-18 Thread Nicolò Margaritella
A new package called APFr for threshold selection in large scale inference problems using robust estimates of Average Power Function and Bayes FDR, is available. CRAN: https://cran.r-project.org/web/packages/APFr/index.html An illustrative example can be found at: https://www.researchgate.net/pub

[R] [R-pkgs] short presentation of the new package "GuessCompx"

2019-06-18 Thread Agenis-Nevers Marc
Dear R community members, please find here a short presentation of our new package. We introduce GuessCompx, a new R package that makes an empirical guess on the time and memory complexities of an algorithm or a function. It will test multiple, increasing-sizes samples of the user’s data and try t

[R] How to select max data according to week?

2019-06-18 Thread SITI AISYAH BINTI ZAKARIA
Hi, I'm Aisyah..I have a problem to run my R coding. I want to select maximum value according to week. here is my data Date O3_Conc 21010.033 21020.023 21030.025 21040.041 21050.063 21060.028 21070.068

Re: [R] Add transitivity to a matrix?

2019-06-18 Thread Martin Maechler
> Eric Berger > on Tue, 18 Jun 2019 16:33:40 +0300 writes: > That's what my code does. > On Tue, Jun 18, 2019 at 4:27 PM Jeff Newmiller > wrote: >> Assuming Peter's equation applies, I think a direct for loop with >> multiplication would be a more efficient way t

Re: [R] Add transitivity to a matrix?

2019-06-18 Thread Eric Berger
That's what my code does. On Tue, Jun 18, 2019 at 4:27 PM Jeff Newmiller wrote: > Assuming Peter's equation applies, I think a direct for loop with > multiplication would be a more efficient way to obtain this answer than > repeated use of a power operator. > > On June 18, 2019 8:01:09 AM CDT, M

Re: [R] Add transitivity to a matrix?

2019-06-18 Thread Duncan Murdoch
On 18/06/2019 9:01 a.m., Eric Berger wrote: Very nice, Peter. Here is one version of Peter's suggestion expressed in R code M <- M | t(M)  # first step as symmetric matrix as stated by OP Q <- M for ( i in 2:(ncol(Q)-1) )    Q <- Q + Q %*% M R <- (Q > 0) R That's not quite the same calculat

Re: [R] Add transitivity to a matrix?

2019-06-18 Thread Jeff Newmiller
Assuming Peter's equation applies, I think a direct for loop with multiplication would be a more efficient way to obtain this answer than repeated use of a power operator. On June 18, 2019 8:01:09 AM CDT, Martin Maechler wrote: >> peter dalgaard >> on Tue, 18 Jun 2019 11:45:39 +02

Re: [R] Add transitivity to a matrix?

2019-06-18 Thread Eric Berger
Very nice, Peter. Here is one version of Peter's suggestion expressed in R code M <- M | t(M) # first step as symmetric matrix as stated by OP Q <- M for ( i in 2:(ncol(Q)-1) ) Q <- Q + Q %*% M R <- (Q > 0) R HTH, Eric On Tue, Jun 18, 2019 at 12:46 PM peter dalgaard wrote: > Sounds like

Re: [R] Add transitivity to a matrix?

2019-06-18 Thread Martin Maechler
> peter dalgaard > on Tue, 18 Jun 2019 11:45:39 +0200 writes: > Sounds like this is isomorphic to reachability in graph > theory. I wonder if > (sum_1^n M^i) > 0 > would suffice? neat! (and I guess correct) > -pd Which reminds me that in the relatively dista

Re: [R] Add transitivity to a matrix?

2019-06-18 Thread peter dalgaard
Sounds like this is isomorphic to reachability in graph theory. I wonder if (sum_1^n M^i) > 0 would suffice? -pd > On 18 Jun 2019, at 02:08 , Duncan Murdoch wrote: > > On 17/06/2019 7:34 p.m., Bert Gunter wrote: >> Depends on what you mean by "simple" of course, but suppose that: >> M[i,j]