Learn R Programming

genio (version 1.0.9)

delete_files_plink: Delete all plink binary files

Description

This function deletes each of the plink binary files (BED/BIM/FAM extensions) given the shared base file path, warning with an informative message if any of the files did not exist.

Usage

delete_files_plink(file)

Arguments

file

The shared file path (excluding BED/BIM/FAM extensions).

Value

Nothing

Examples

Run this code
# NOT RUN {
# create dummy BED/BIM/FAM files
file <- tempfile('delete-me-test') # no extension
# add each extension and create empty files
file.create( paste0(file, '.bed') )
file.create( paste0(file, '.bim') )
file.create( paste0(file, '.fam') )

# delete the BED/BIM/FAM files we just created
delete_files_plink(file)

# }

Run the code above in your browser using DataLab