Displaying 1 result from an estimated 1 matches for "latincheck".
2003 Nov 25
2
R recursion depth and stack size
...ume more than a couple of kilobytes.
Is this a fundamental misunderstanding of the way R works?
Pascal
BTW: Is there a way to pass variables "by reference" in function calls?
------
The function stripped-down to the essential looks like this:
latin.square <- function(t = 4)
{
latinCheck <- function(r,c,t)
{
set <- setdiff(LETTERS[1:t],c(m[r,],m[,c]));
for(i in set)
{
m[r,c] <<- i;
if(c<t)
{
latinCheck(r,c+1,t);
}
else
{
if(r<t)...