# NOT RUN {
# Automatically inserts FID IID columns required by PLINK
ukb_gen_write_plink(
my_ukb_data,
path = "my_ukb_plink.pheno",
ukb.variables = c("height", "weight", "iq")
)
ukb_gen_write_plink(
my_ukb_data,
path = "my_ukb_plink.cov",
ukb.variables = c("age", "socioeconomic_status", "genetic_pcs")
)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab