pre4.combine.case.control: Combine CASE and CONTROL files

Description Usage Arguments Details Author(s) See Also Examples

Description

Combines CASE and CONTROL files into one file, and appends disease status as the last column. The disease status is encoded as 1 for CASE and 0 for CONTROL.

Usage

1
2
pre4.combine.case.control(case.file, control.file, dir.file, name.out, 
dir.out = dir.file, separ = " ")

Arguments

case.file

The name of the CASE file.

control.file

The name of the CONTROL file.

dir.file

The name of directory where CASE and CONTROL input files can be found.

name.out

The desired name for the output file.

dir.out

The name of directory to which output file should be written.

separ

The separator used in the CASE and CONTROL input files.

Details

The function combines CASE and CONTROL together, attaching disease status as the last column: 1 for CASE and 0 for CONTROL. There will be two output files:

1
2
3
4
 - <dir.out>/<name.out> - the file containing both CASE and CONTROL values, 
     with the disease status as the last column.
 - <dir.out>/<all.dat> - also will copy over ALL the files ending with ".dat" 
     that exist in \code{\var{dir.file}}.

Author(s)

Olia Vesselova

See Also

pre3.call.mach, pre3.call.mach.batch, pre4.combine.case.control.batch, pre5.genos2numeric, pre5.genos2numeric.batch

Examples

1
print("See the demo 'gendemo'.")

Example output

[1] "See the demo 'gendemo'."

genMOSSplus documentation built on May 1, 2019, 10:31 p.m.