Learn R Programming

localScore (version 2.0.1)

loadScoreFromFile: 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, ...)

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

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 TRUE)

...

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.