Hi, A repeatable example with data would help, as that way we could see what was happening. >
> sampling=function(fname,Total,nSample,nPatient){ > trans=t(A) What's A? It isn't one of the arguments to your function. And what's the transpose of a non-existent thing? You may well have it in your workspace so the function goes when you copy and paste in the code. Sarah -- Sarah Goslee http://www.functionaldiversity.org ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.