foo(x) <- 10
Error: couldn't find function "foo<-"
this is because you defined 'foo', and not 'foo<-', which are two different functions.
if instead (or as well) you did:
"foo<-" <- if (TRUE) get("names<-") else get("dim<-")
then it works.
Doesn't cure this one though:
> (foo)(x) <- 10 Error: couldn't find function "@<-"
Where's the gurus?
Baz
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help