Skip to content
Prev 171681 / 398503 Next

Have any way to write a funtion into a list ?

Nash wrote:
Sure:

A <- list(mean, var)
A[[1]](1:2) # 1.5
A[[2]](1:2) # 0.5

Uwe Ligges