Re: [R] Repeating tdt function on thousands of variables

From: Farrel Buchinsky <>
Date: Thu 04 May 2006 - 12:44:45 EST

Uwe Ligges <ligges <at>> writes:
> The same way. lapply() and sapply() should work for almost all functions
> given, if nothing strange happens with environemnts, which is the case here:
> The problem is tdt() itself. Note that it has its argument data set to
> sys.frame(sys.parent()) as the default, but l/sapply are evaluating in a
> different environment!

I communicated with David Clayton, the person who wrote dgc.genetics. He was indeed able to get lapply() and sapply() to work. However I could only get it do so when I change the variable names to match tdt's default variable names. tdt lets one specify which variable should be used for pedigree, which for person ID etcetera. However, I could never get lapply to work when one used the tdt in that setting.

Farrel Buchinsky mailing list PLEASE do read the posting guide! Received on Thu May 04 12:52:22 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 04 May 2006 - 14:09:59 EST.

Mailing list information is available at Please read the posting guide before posting to the list.