ConvertFileToLogic: A function to turn a file into a logical vector. Useful for...

Description Usage Arguments Value Examples

Description

A function to turn a file into a logical vector. Useful for making a survivals vector to split your data in two parts.

Usage

1

Arguments

file.path

The path to the VCF file you want to analyse

type

The type of the content of your file, can be "number" (default) or "character"

Value

A logical vector representing the content of your file. If type is set to "number" (default), for each line of your file, a "0" will result in a FALSE and any other number will result in a TRUE. If type is set to "character", "TRUE" or "T" or "true" or "True" will return TRUE, "FALSE" or "F" or "False" or "false" will return a FALSE.

Examples

1
2
3
4
5
## Not run: 
ConvertFileToLogic("myFile.txt")
ConvertFileToLogic("myFile.txt", type = "character")

## End(Not run)

laurentlab-mpipz/rsurvival documentation built on May 29, 2019, 9:14 a.m.