Dear all,
I would like to thank you for your contribution.
I think I got more that one good solutions to work on.
Best Regards
Alex
--- On Thu, 2/3/11, Bert Gunter wrote:
From: Bert Gunter
Subject: Re: [R] "Matrix' with Functions
To: "Samuel Le"
Cc: "Alaios&quo
r-project.org [mailto:r-help-boun...@r-project.org]
> On Behalf Of Alaios
> Sent: 03 February 2011 16:33
> To: R-help@r-project.org
> Subject: [R] "Matrix' with Functions
>
> Dear R members,
> I have a quite large of function that are named like that
> f11,f12,..
,c,d),sep="")))
>return(res)
> }
>
> HTH,
>
> Samuel
>
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
> On Behalf Of Alaios
> Sent: 03 February 2011 16:33
> To: R-help@r-project.org
>
] On
Behalf Of Alaios
Sent: 03 February 2011 16:33
To: R-help@r-project.org
Subject: [R] "Matrix' with Functions
Dear R members,
I have a quite large of function that are named like that
f11,f12,...f15
f21,f22,...f25
..
f51,f52,...f52
These are static (hard-coded) functions that the only com
Seems funny to me:
> f <- list (mean, sd, median, sum)
> dim (f) <- c (2, 2)
or in one line:
> f <- structure (.Data=list (mean, sd, median, sum), dim = c(2,2))
> f
[,1] [,2]
[1,] ??
[2,] ??
> f [1,1]
[[1]]
function (x, ...)
UseMethod("mean")
> f [[1,1]] (1:3)
[1] 2
> f [[2,1]] (1
Dear R members,
I have a quite large of function that are named like that
f11,f12,...f15
f21,f22,...f25
..
f51,f52,...f52
These are static (hard-coded) functions that the only common they have is that
they take the same number and type of input fij(a,b,c,d). As you might
understand this is reall
6 matches
Mail list logo