Re: [R] [External] "apply" a function that takes two or more vectors as arguments, such as cor(x, y), over a "category" or "grouping variable" or "index"?

2022-04-08 Thread Eric Berger
library(dplyr) my_df |> group_by(my_category) |> summarise(my_z = cor(my_x, my_y)) On Sat, Apr 9, 2022 at 4:37 AM Richard M. Heiberger wrote: > look at > ?mapply > Apply a Function to Multiple List or Vector Arguments > > to see if that meets your needs > > > On Apr 08, 2022, at 21:26, Kelly

Re: [R] error with more 100 forked processes

2022-04-08 Thread Henrik Bengtsson
The reason why you hit the limit already around 100 workers, could be because you already have other connections open, e.g. file connections, capture.output(), etc. If you want to use *forked* processing with more than 125 workers using bare-bone R, you can use parallel::mclapply() and friends,

[R] error with more 100 forked processes

2022-04-08 Thread Guido Kraemer via R-help
I am trying to run a parallel job on a computer with many CPUs and get the following error: > library(parallel) > cl <- makeForkCluster(128) Error in UseMethod("sendData") :   no applicable method for 'sendData' applied to an object of class "NULL" If I scale down to 100 CPUs it doesn't

Re: [ESS] [External] Emacs 28.1 Released

2022-04-08 Thread Marc Schwartz via ESS-help
Hi, Vincent, you might want to connect with David Caldwell on the issues that you are facing. I noted that on this page:   https://emacsformacosx.com/about he notes that there are changes to the app launcher that may be relevant to what you are experiencing. Whether there is an intentional

Re: [R] [External] add equation and rsqared to plot

2022-04-08 Thread Bert Gunter
Thanks, Bill. This is a subtlety I certainly did not understand. Bert On Fri, Apr 8, 2022 at 10:08 AM Bill Dunlap wrote: > > plotmath also accepts names and calls, which it treats as though they were > single-element expressions. That is why quote() generally works. > quote("string") or

Re: [R] pam() with more general dissimilarity / distance

2022-04-08 Thread Martin Maechler
I was asked in private, but reply in public, so others can also find this answer in the future: On Fri, Apr 8, 2022 at 1:11 PM . wrote : > Hello > dear Dr. Maechler > I have a question about "pam" function in the cluster package. In this > function, we choose one of the euclidean or