lundi 29 juin 2020

taking the information out of another column [duplicate]

I have two dataframes as follows

Team Value
A  0.6 
B  0.5
C  0.5
D  0.5

Group 
B
D
A
B
C 

I want to get the information from the second column used in an if else function I think

if (Team == Group) {take Value next to the column of Team corresponding to the Team/Group letter}

and in a forloop

for(i in 1:5) {DataGroup [i] }

I am not sure if I can explain myself well but those two functions I guess I need

Aucun commentaire:

Enregistrer un commentaire