I have a vector:
alleles.present<-c("D3", "D16", ... )

The alleles present changes given the case I'm dealing with - i.e. either
all of the alleles I use for my calculations are present, or some of them.

Depending on what alleles are present, I need to make matrices and do
calculations on those alleles present and completely disregard any formula
or other use of the alleles not present.

I'm trying to figure out the best way to do this.

Basically I'm trying to do if() commands (with no success so far) to allow
me to query the alleles.present for the presence of each allele I use and
then let dictate which formula to use etc...

Does anyone have a good way to do this?  I've been fiddling with grep()
etc... but I can't get it to do what I need!!  Very frustrating.

Thanks very much

-- 
Gareth Campbell
PhD Candidate
The University of Auckland

P +649 815 3670
M +6421 256 3511
E [EMAIL PROTECTED]
[EMAIL PROTECTED]

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to