First of all, what is thebenefit of as.numeric on a character vector instead of using a numeric vector directly?
Second, it may be obvious to you, but not to others (certainly not to me) what is GF or GA. Please provide that information, and what have you already tried to get those information.
Also, please confirm that GF or GA information can be obtained just from df_, without any other data source (may be other R objects in your environment or from domain information).
If your problem is solved, please mark the thread as closed.
Just for my curiosity, can one of you (@turkjr19 or @andresrcs) please explain what was GF and GA? I thought it meant goal in favour and against, and that makes no sense to calculate from game and team ID's, so I was, and still am, very confused. Andre's solution, which apparently satisfied OP's requirements, didn't help me in guessing correct full forms of GF and GA, so it'd be nice to know. Thanks in advance.