How To List Possible Options From Another Dataframe in R

I have an output from a filter that looks like this:

 Gender    Handicap  CurrentShotShape    DesiredShotShape    PrimaryRec
  Male         5            Slice            Fade              G425 SFT

I have another dataframe that has a specific row for each possible lofts. Some have one possible loft, and others have three.

I want to be able to reference the PrimaryRec filter answer (G425 SFT in example), and spit out all possible Lofts from the second DataFrame. In this case, 9 and 10.5.



Read more here: https://stackoverflow.com/questions/67010683/how-to-list-possible-options-from-another-dataframe-in-r

Content Attribution

This content was originally published by Golf Guy at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: