I'm trying to write some software for doing statistical analyses, and I'm looking for a function that calculates a principle components analysis. Does anybody have such a code somewhere gathering dust on his (her) hard disc? That would prevent me from having to invent the wheel yet again...

Cheers, mijter