I have two columns in R, they are columns of 1's and 0's.
Score Predict
1 1
1 0
0 1
1 1
0 1
1 0
1 1
1 1
1 1
0 1
0 0
0 0
0 0
1 1
1 1
1 1
I need to write a function that compares each column and gets an average of how many times the predicted column is the same as the score column. This shouldn't be too difficult but I am new with 'R' coding so any help is greatly appreciated. Thanks!
Aucun commentaire:
Enregistrer un commentaire