save_sample_ids: Save a 'sample_ids' to file.

View source: R/save_sample_ids.R

save_sample_idsR Documentation

Save a sample_ids to file.

Description

Save a sample_ids to file.

Usage

save_sample_ids(sample_ids, sample_ids_filename)

Arguments

sample_ids

sample IDs, which is a tibble with two columns: the first column holds the family ID (called fid or FID by PLINK/PLINK2), the second column holds the within-family ID (called iid or IID by PLINK/PLINK2), as can be checked by check_sample_ids

sample_ids_filename

name of a file to store sample_ids (see check_sample_ids) to

Value

Nothing. Will create a file

Author(s)

Richèl J.C. Bilderbeek

Examples

sample_ids <- get_test_sample_ids()
sample_ids_filename <- get_plinkr_tempfilename()
save_sample_ids(
  sample_ids = sample_ids,
  sample_ids_filename = sample_ids_filename
)

# Clean up

richelbilderbeek/plinkr documentation built on March 25, 2024, 3:18 p.m.