I have a giant data frame. The first column is names. I would like to type in the console the name and then it outputs a predetermined row corresponding to that name.
For example:
Data Frame =
Name Height Weight Shoes Hats
1 Joe 60 150 13 4
2 Nick 55 100 10 10
3 Dan 80 250 40 50
I would like to Search for Nick
, the function searches in the first column for Nick. Once it finds Nick it prints out the Shoes value. So it needs to search in the first column and then return what ever the corresponding shoe value is.