Re: [R] R-help Digest, Vol 212, Issue 4

2020-10-06 Thread Avi Gross via R-help
yet another C function for speed. -Original Message- From: R-help On Behalf Of Izmirlian, Grant (NIH/NCI) [E] via R-help Sent: Monday, October 5, 2020 1:06 PM To: 'r-help@r-project.org' Subject: Re: [R] R-help Digest, Vol 212, Issue 4 Hi -- there are lots of replies --I hav

Re: [R] R-help Digest, Vol 212, Issue 4

2020-10-05 Thread Izmirlian, Grant (NIH/NCI) [E] via R-help
Hi -- there are lots of replies --I have not read them all, if someone else suggested this, sorry for duplication. This is similar to the suggestion using mapply, but not specific to matrices. In fact it's a kludge that applies to many settings. You 'sapply' over the index 1:2, and pass a, b as