pre4.combine.case.control:
Combine CASE and CONTROL files
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
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:
- / - the file containing both CASE and CONTROL values,
with the disease status as the last column.
- / - also will copy over ALL the files ending with ".dat"
that exist in \code{\var{dir.file}}.
Examples
Run this codeprint("See the demo 'gendemo'.")
Run the code above in your browser using DataLab