crMatrixSD | R Documentation |
This function creates data matrices and vectors (for sum and differences) from a dataframe containing results of soccer matches.
crMatrixSD(data)
data |
a data frame containing soccer matches database, where each line (observation) represent a soccer match, first variable must be Home team, second variable must be number of goals achieved by Home team, third variable must be number of gols achieved by Visitor team, fourth must be the Visitor team, and the fifth must indicate if there was a filed factor in the match ( represented by 0 for 'no' or 1 for 'yes') |
A list with two vectors: sum and dif; and two matrices: matS and matT.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.