loadScoreFromFile {localScore} | R Documentation |
Load score from file
Description
Reads a csv file containing an alphabet, the associated scores, and eventually the associated probabilities.
Usage
loadScoreFromFile(filepath, header = TRUE, ...)
Arguments
filepath |
optional: location of file on disk. If not provided, a file picker dialogue box will be opened. |
header |
does the file contain a header line (defaut to |
... |
optional: use arguments from read.csv |
Details
The file should contains a header and 2 or 3 columns : first column the letters, second column the associated scores, optional third column associated probabilities. Letters should be unique and probabilities should sum to 1.
Value
A data.frame. Rownames correspond to the first column, usually Letters. Associated numerical scores are in the second column. If probabilities are provided, they will be loaded too and presumed to be in the third column
[Package localScore version 2.0.3 Index]