Re: [R] extracting bootstrap statistics by group with loop

2021-10-31 Thread Marna Wagley
Thank you Rui. It helped a lot. -MW On Sun, Oct 31, 2021 at 10:16 AM Rui Barradas wrote: > Hello, > > Now I'm spamming the list, not one of my days. > > My first post was right, there was no bug and the 2nd one was exactly > the same code, it corrected nothing at all. > > Apologies for the noise

Re: [R] R vs Numpy

2021-10-31 Thread Jeff Newmiller
If you are looking for expertise in answering questions about NumPy, the pool of experts will be smaller here than in a forum whose topic is NumPy. I don't know what "BIO" means... if it alludes to biostatistics then there is a whole separate Bioconductor project that specializes in applying R

Re: [R] R vs Numpy

2021-10-31 Thread Richard O'Keefe
Reasons for preferring one to another: - taste. If you like curly braces, you'll prefer R. If you like indentation forced by syntax, you'll prefer Python. - compatibility. This morning I was trying to use a web site where all the Python examples were non-functional due to either of bo

Re: [R] extracting bootstrap statistics by group with loop

2021-10-31 Thread Rui Barradas
Hello, Now I'm spamming the list, not one of my days. My first post was right, there was no bug and the 2nd one was exactly the same code, it corrected nothing at all. Apologies for the noise, Rui Barradas Às 16:55 de 31/10/21, Rui Barradas escreveu: Hello, Sorry, bug. In both by instruct

Re: [R] extracting bootstrap statistics by group with loop

2021-10-31 Thread Rui Barradas
Hello, Sorry, bug. In both by instructions it's boot_mean_se, not bootprop. boot_year <- by(DaT, DaT$Year, boot_mean_se, statistic = bootprop, R = R) boot_year_area <- by(DaT, INDICES = list(Year = DaT$Year, Area = DaT$Area), FUN = boot_mean_se,

Re: [R] png raster in 3D chart

2021-10-31 Thread Cleber Borges via R-help
Em 31/10/2021 08:09, Duncan Murdoch escreveu: Rlogo <- "C:/R/doc/html/logo.jpg" That won't work on most systems.  Please use something like Rlogo <- file.path(R.home(), "doc/html/logo.jpg") Ok. Done! box3d( floating=NA  ) I don't think that has ever worked.  "floating=NA" is a special

Re: [R] extracting bootstrap statistics by group with loop

2021-10-31 Thread Rui Barradas
Hello, Try to aggregate with ?by. bootprop <- function(data, index){ d <- data[index, ] sum(d[["bothTimes"]], na.rm = TRUE)/sum(d[["total"]], na.rm = TRUE)# } boot_mean_se <- function(data, statistic, R){ b <- boot::boot(DaT, bootprop, R = R) c(bootMean = mean(b$t), bootSE = sd(b$t)) }

[R] typo in documentation for array

2021-10-31 Thread Mathew Englander
I noticed a typo in the ?array help-file ("Multi-way Arrays"), which is also at this web page: https://stat.ethz.ch/R-manual/R-patched/library/base/html/array.html In the "Arguments" section of that page, under the subheading "dimnames", the second sentence begins "This must a list..." and it ough

[R] extracting bootstrap statistics by group with loop

2021-10-31 Thread Marna Wagley
Hi R users, I was trying to extract the bootstrap mean and its SE by group but I have been doing it by separating the group manually. The data set is big so doing it manually is a kind of tedious task. I am wondering whether there is a possibility to do it by creating a loop. I am weak in writing

Re: [R] png raster in 3D chart

2021-10-31 Thread Duncan Murdoch
On 30/10/2021 5:48 p.m., Cleber Borges via R-help wrote: After a lot of testing and reading the manuals, I think I came pretty close to what I wanted (code below). But some Cartesian axes do not appear. I placed each axis separately and the corners where the raster images coincide overlapping t