Displaying 1 result from an estimated 1 matches for "tp1740345p1742636".
2010 Mar 30
2
Problem with expand.grid() function
Hi, good morning,
I got following error which looks strange to me while executing this code :
> temp <- expand.grid(rep(list(c(1,0)),40))
Error in rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) :
invalid 'times' value
In addition: Warning message:
In rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) :
NAs introduced by coercion
However if I put a small