Sib-pair Command: chosen


ClassData functions
Namechosen
Arguments

A function whose value indicates if individual was selected for use by the previous command. Many commands use an internal array (untyped) to mark those records that are to be operated upon, and the state of this array can be read using chosen.

Example:

read cases inline
1
2
3
4
;;;;
run
output work.txt
echo A 1
echo B 3
output
hash file work.txt 2
set loc matched cat 0=Nomatch 1=Matched
let matched = chosen
echo
echo List of IDs that were searched for:
file cat work.txt
echo
echo Show these are identified in the pedigree file
wri
file delete work.txt


<< (famnum)Up to index>> (macro)