Skip to content
Prev 285321 / 398502 Next

execute array of functions

Not sure the replies you received make it clear, but the key point is
that functions are first class objects in R like any other objects
(vectors, lists, data frames) and can be assigned, collected into
structures, indexed, etc. in the usual way. Further, if the value of
any R expression is a function object, it can be called in the usual
way on an argument list by:

Some R_Expression(comma separated argument list)

e.g.
11

Your initial confusion below actually has nothing to do with this: you
have confused unquoted names of objects in R with quoted character
strings. So, e.g.

x <- 1:10
assigns a sequence of numeric values to the name x, which essentially
points to where those values are stored in memory.

typing
at the command line would print the values (by default)

typing
prints the character string "x"

-- Bert

On Tue, Feb 14, 2012 at 11:02 AM, Muhammad Rahiz
<muhammad.rahiz at ouce.ox.ac.uk> wrote: