Description Usage Arguments Value Examples
A function to turn a file into a logical vector. Useful for making a survivals vector to split your data in two parts.
1 | ConvertFileToLogic(file.path, type = "number")
|
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" |
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.
1 2 3 4 5 | ## Not run:
ConvertFileToLogic("myFile.txt")
ConvertFileToLogic("myFile.txt", type = "character")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.