Displaying 1 result from an estimated 1 matches for "712596".
Did you mean:
512596
2000 Oct 13
2
syntax confusion with function/non-function objects (PR#694)
I'm just back from a computer practical where we ran into
> "f" <- function(x) 2(x^2) # for 2 * x^2
This definition was taken as legitimate, although using the
function generated the error message
> f(3)
Error in f(3) : attempt to apply non-function
Am I right in thinking that in prevous versions of R this
definition would have been declared as a syntax error? Surely a