Your function is probably not vectorized. See the R FAQ question
7.19.
-roger
Yao, Minghua wrote:> Dear R gurus,
>
> When I used outer(x, y, FUN, ...), I got error message when there was
matrix multiplications with x or y in FUN. FUN worked fine when x and y were
applied to it in FUN(x, y, ...). Is this a bug for outer( )?
>
> -MY
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
>