similar to: cwilcox - new version

Displaying 20 results from an estimated 110 matches similar to: "cwilcox - new version"

2024 Jan 16
1
cwilcox - new version
I?ve been looking at this for a couple hours--it ended up being trickier than I expected to implement well. I?ve attached a new patch here. This version scales significantly better than the existing method for both `pwilcox` and `dwilcox`. Examples are included below. I can?t think of any other ways to improve runtime at this point. That?s not to say there aren?t any, though?I?m hopeful
2023 Nov 06
2
New syntax for positional-only function parameters?
Dear List, I'm writing to gauge interest in new syntax for positional-only function parameters to be added to R. The pattern of functions accepting other functions as inputs and passing additional ... arguments to them is prevalent throughout the R ecosystem. Currently, however, all such functions must one way or another tackle the problem of inadvertently passing arguments meant to go to
2023 Mar 23
1
`dendrapply` Enhancements
Hello Aidan, Sorry for dropping this for a while. ? Thu, 2 Mar 2023 21:03:59 +0000 "Lakshman, Aidan H" <AHL27 at pitt.edu> ?????: > //after > curnode = eval(lang3(R_Bracket2Symbol, parent->node, DEND_IND), env); lang3() always constructs a new language object. If you do end up using eval(), it may make sense to move lang3() out of the loop and reuse the existing object
2024 Jan 17
2
cwilcox - new version
> > > Performance statistics are interesting. If we assume the two populations > have a total of `m` members, then this implementation runs slightly slower > for m < 20, and much slower for 50 < m < 100. However, this implementation > works significantly *faster* for m > 200. The breakpoint is precisely when > each population has a size of 50; `qwilcox(0.5,50,50)`
2024 Apr 22
2
x[0]: Can '0' be made an allowed index in R?
You could have negative indices. There are two ways to do this. 1) provide a large offset. Offset <- 30 for (i in -29 to 120) { print(df[i+Offset])} 2) use absolute values if all indices are negative. for (i in -200 to -1) {print(df[abs(i)])} Tim -----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of Peter Dalgaard via R-help Sent: Monday, April 22,
2024 Feb 23
1
help - Package: stats - function ar.ols
The data came through fine, the program was a miss. Can you paste the program into a ".txt" document like a notepad file and send that? You could also paste it into your email IF your email is configured to send text and NOT html. TIm -----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of Pedro Gavronski. Sent: Friday, February 23, 2024 5:00 AM To:
2024 Feb 29
2
Initializing vector and matrices
You could declare a matrix much larger than you intend to use. This works with a few megabytes of data. It is not very efficient, so scaling up may become a problem. m22 <- matrix(NA, 1:600000, ncol=6) It does not work to add a new column to the matrix, as in you get an error if you try m22[ , 7] but convert to data frame and add a column m23 <- data.frame(m22) m23$x7 <- 12 The only
2024 Feb 23
2
help - Package: stats - function ar.ols
Hello, Thanks for the reply Rui and for pointing out that I forgot to attach my code. Please find attached in this email my code and data. Thanks in advance. Best regards, Pedro Gerhardt Gavronski. On Fri, Feb 23, 2024 at 5:50?AM Rui Barradas <ruipbarradas at sapo.pt> wrote: > > ?s 16:34 de 22/02/2024, Pedro Gavronski. escreveu: > > Hello, > > > > My name is Pedro
2024 Apr 22
1
x[0]: Can '0' be made an allowed index in R?
Heh. Did anyone bring up negative indices yet? -pd > On 22 Apr 2024, at 10:46 , Rolf Turner <rolfturner at posteo.net> wrote: > > > See fortunes::fortune(36). > > cheers, > > Rolf Turner > > -- > Honorary Research Fellow > Department of Statistics > University of Auckland > Stats. Dep't. (secretaries) phone: > +64-9-373-7599
2024 Apr 23
1
x[0]: Can '0' be made an allowed index in R?
Doesn't sound like you got the point. x[-1] normally removes the first element. With 0-based indices, this cannot work. - pd > On 22 Apr 2024, at 17:31 , Ebert,Timothy Aaron <tebert at ufl.edu> wrote: > > You could have negative indices. There are two ways to do this. > 1) provide a large offset. > Offset <- 30 > for (i in -29 to 120) { print(df[i+Offset])} >
2024 Apr 23
2
x[0]: Can '0' be made an allowed index in R?
Hello Peter, Unless I too misunderstand your point, negative indices for removal do work with the Oarray package (though -0 doesn't work to remove the 0th element, since -0 == 0 -- perhaps what you meant): > library(Oarray) > v <- Oarray(1:10, offset=0) > v [0,] [1,] [2,] [3,] [4,] [5,] [6,] [7,] [8,] [9,] 1 2 3 4 5 6 7 8 9 10 > dim(v)
2024 Mar 02
1
Initializing vector and matrices
The matrix equivalent of x <- ... v <- ... x[length(x)+1] <- v is m <- ... r <- ... m <- rbind(m, r) or m <- ... k <- ... m <- cbind(m, c) A vector or matrix so constructed never has "holes" in it. It's better to think of CONSTRUCTING vectors and matrices rather than INITIALISING them, because always being fully defined is important. It
2024 Feb 29
1
Initializing vector and matrices
x <- numeric(0) for (...) { x[length(x)+1] <- ... } works. You can build a matrix by building a vector one element at a time this way, and then reshaping it at the end. That only works if you don't need it to be a matrix at all times. Another approach is to build a list of rows. It's not a matrix, but a list of rows can be a *ragged* matrix with rows of varying length. On Wed,
2024 Feb 23
2
Rtools and things dependent on it
Avi , Your question is not dumb. Let me ask a more fundamental question. What is R tools, what does it do, and how is it used. From time to time, I receive a message when I down load a package saying I need R tools. When I receive the message, I don?t know what I should do, other than down load R tools. John John David Sorkin M.D., Ph.D. Professor of Medicine Chief, Biostatistics and Informatics
2024 Feb 23
2
Rtools and things dependent on it
This may be a dumb question and the answer may make me feel dumber. I have had trouble for years with R packages wanting Rtools on my machine and not being able to use it. Many packages are fine as binaries are available. I have loaded Rtools and probably need to change my PATH or something. But I recently suggested to someone that they might want to use the tabyl() function in the janitor
2024 Mar 02
1
Initializing vector and matrices
"It would be really really helpful to have a clearer idea of what you are trying to do." Amen! But in R, "constructing" objects by extending them piece by piece is generally very inefficient (e.g. https://r-craft.org/growing-objects-and-loop-memory-pre-allocation/), although sometimes?/often? unavoidable (hence the relevance of your comment above). R generally prefers to take
2024 Apr 23
1
x[0]: Can '0' be made an allowed index in R?
I think it might be fair to say that the discussion is becoming a tad wider than whether you want your data structures indexed starting from 0 or 1. Programming languages have added functionality to do many things on top of the simple concept of accessing or changing the nth element one at a time. If someone wants to make a parallel way to handle things, it may work for some uses but not others
2024 Jan 06
0
Help request: Parsing docx files for key words and appending to a spreadsheet
Hi Tim This is brilliant - thank you!! I've had to tweak the basePath line a bit (I am on a Linux machine), but having done that, the code works as intended. This is a truly helpful contribution that gives me ideas about how to work it through for the missing fields, which is one of the major sticking points I kept bumping up against. Thank you so much for this. All the best Andy On
2023 Dec 14
0
R-help Digest, Vol 250, Issue 13
Kevin, Maybe also look at what air quality monitoring is being done in area. https://cran.r-project.org/web/packages/RAQSAPI/vignettes/RAQSAPIvignette.html Depends what and how near, but might be something relevant there? Karl Dr Karl Ropkins Transport Studies | Environment | University of Leeds ------------------------------ Message: 2 Date: Tue, 12 Dec 2023 07:52:59 -0800 From: Bert Gunter
2024 Feb 24
1
Rtools and things dependent on it
On 2/23/24 16:28, Sorkin, John wrote: > David, > My apologies regarding the format of my email. I am replying using my > iPhone, and I can?t find a way to switch from what I suspect is html > to txt format. > The link you sent told me that R tools allows compilation of code. It's specifically designed to provide the code tools missing in Windows that would other wise have