Re: [R] [FORGED] Re: Loop With Dates

2019-09-23 Thread Rolf Turner
On 22/09/19 11:19 PM, Richard O'Keefe wrote: Whenever you want a vector that counts something, cumsum of a logical vector is a good thing to try. Fortune nomination. cheers, Rolf -- Honorary Research Fellow Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 882

Re: [R] 95% bootstrap CIs

2019-09-23 Thread Rui Barradas
Hello, Is this what you are looking for? ci95 <- apply(my.data, 2, quantile, probs = c(0.025, 0.975)) Hope this helps, Rui Barradas Às 20:42 de 23/09/19, varin sacha via R-help escreveu: Dear R-Experts, Here is my reproducible R code to get the Mean squared error of GAM and MARS after I

[R] 95% bootstrap CIs

2019-09-23 Thread varin sacha via R-help
Dear R-Experts, Here is my reproducible R code to get the Mean squared error of GAM and MARS after I = 50 iterations/replications. If I want to get the 95% bootstrap CIs around the MSE of GAM and around the MSE of MARS, how can I complete/modify my R code ? Many thanks for your precious help.

Re: [R] The "--slave" option

2019-09-23 Thread Martin Maechler
> Richard O'Keefe > on Sat, 21 Sep 2019 09:39:18 +1200 writes: > Ah, *now* we're getting somewhere. There is something > that *can* be done that's genuinely helpful. >> From the R(1) manual page: >-q, --quiet Don't print startup message >--silent

Re: [R] Average distance in kilometers between subsets of points with ggmap /geosphere

2019-09-23 Thread Eric Berger
Hi Malte, I only skimmed your question and looked at the desired output. I wondered if the apply function could meet your needs. Here's a small example that might help you: m <- matrix(1:9,nrow=3) m <- cbind(m,apply(m,MAR=1,mean)) # MAR=1 says to apply the function row-wise m # [,1] [,2]

[R] Average distance in kilometers between subsets of points with ggmap /geosphere

2019-09-23 Thread Malte Hückstädt
I would like to determine the geographical distances from a number of addresses and determine the mean value (the mean distance) from these. In case the dataframe has only one row, I have found a solution: ```r # Pakete laden library(readxl) library(openxlsx) library(googleway) #library(sf) libr

Re: [R] [SPAM] Re: The "--slave" option

2019-09-23 Thread Benjamin Lang
Hi Abby, I don’t really understand why you’re upset with me, but a) they’re cultured cell lines, not animals, b) they might cure people, c) I don’t do experiments, d) modern slavery, dated today: https://www.theguardian.com/world/2019/sep/21/such-brutality-tricked-into-slavery-in-the-thai-fishi

Re: [R] [SPAM] Re: The "--slave" option

2019-09-23 Thread Benjamin Lang
Hah, fair. I do hope somebody does see it and gives it a thought. Thanks, Ben On Sun, 22 Sep 2019 at 01:29, Roy Mendelssohn - NOAA Federal < roy.mendelss...@noaa.gov> wrote: > Please All: > > While as I said in my first post I am still not convinced that the OP was > in good faith to improve R a