[R] execute array of functions

Muhammad Rahiz muhammad.rahiz at ouce.ox.ac.uk
Tue Feb 14 20:02:40 CET 2012

Hi all,

I'm trying to get the min and max of a sequence of number using a loop 
like the folllowing. Can anyone point me to why it doesn't work.


type 	<- c("min","max")
n 	<- 1:10
for (a in 1:2) 	  {
print(type[a](n)) }


More information about the R-help mailing list