title: Is there a R function to group the categorical values to type of values
body: <p>I have a data frame that includes all different types of goods, for example, apples, bananas, potatoes, tuna, salmon, oranges, and many more.
  All these goods are under a variable &quot;Item&quot;.
  I am looking for a solution in R that can create a new variable as &quot;Item Category&quot; with Fruits, Vegetables, Seafood and assign all the items according to their category.</p>