On Thu, Dec 8, 2016 at 3:59 PM, David Winsemius wrote:
>
>> On Dec 8, 2016, at 12:09 PM, John P. Nolan wrote:
>>
>> Dear All,
>>
>> I regularly want to "apply" some function to an array in a way that the
>> arguments to the user function depend on the index on which the apply is
>> working. A
-Original Message-
From: David Winsemius [mailto:dwinsem...@comcast.net]
Sent: Thursday, December 8, 2016 4:59 PM
To: John P. Nolan
Cc: Charles C. Berry
Subject: Re: [Rd] wish list: generalized apply
> On Dec 8, 2016, at 12:09 PM, John P. Nolan wrote:
>
> Dear Al
> On Dec 8, 2016, at 12:09 PM, John P. Nolan wrote:
>
> Dear All,
>
> I regularly want to "apply" some function to an array in a way that the
> arguments to the user function depend on the index on which the apply is
> working. A simple example is:
>
> A <- array( runif(160), dim=c(5,4,8) )
Dear All,
I regularly want to "apply" some function to an array in a way that the
arguments to the user function depend on the index on which the apply is
working. A simple example is:
A <- array( runif(160), dim=c(5,4,8) )
x <- matrix( runif(32), nrow=4, ncol=8 )
b <- runif(8)
f1 <- function