View source: R/get_plink_example_filename.R
get_plink_example_filename | R Documentation |
Get the path to a PLINK example file
get_plink_example_filename(
example_filename,
plink_options = create_plink_options()
)
example_filename |
name of the example file |
plink_options |
options to run PLINK, as created by create_plink_options |
the path to a PLINK example file, if it exists. Will stop if the file does not exist
Richèl J.C. Bilderbeek
if (is_plink_installed()) {
get_plink_example_filename("toy.map")
get_plink_example_filename("toy.ped")
}
# v.17
plink_options <- create_plink_v1_7_options()
if (is_plink_installed(plink_options)) {
get_plink_example_filename("test.map", plink_options)
get_plink_example_filename("test.ped", plink_options)
}
# v1.9
plink_options <- create_plink_v1_9_options()
if (is_plink_installed(plink_options)) {
get_plink_example_filename("toy.map", plink_options)
get_plink_example_filename("toy.ped", plink_options)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.