Sib-pair Command: read csv


ClassData Declaration command
Nameread csv
Arguments <data file name> [noheader] [sep] <field_separator>]

Reads a CSV format file containing data for pedigrees or unrelated individuals. The default is to expect a header row giving the column names. The default field separator is a comma. The type of each column ("a", "q", "m", "c") is inferred based on their contents, and used to declare the variables to Sib-pair, and to read the dataset. If the first five variable names in the header are "ped", "id", "fa", "mo", "sex", then the file is inferred to be a pedigree file, else it is treated as unrelated individual records.

Example:

clear
out simple.csv
echo a, 4,yes
echo a, 2,no
echo b, 1,x
out
read csv simple.csv noheader
file delete simple.csv
set cat lab
write

See also:

read pedigree read Sib-pair pedigree file
read linkage read pre-Makeped pedigree file
read ppd read post-Makeped pedigree file


<< (read cases)Up to index>> (read vcf)