Check out example codes for "kableextra add custom label". It will help you in understanding the concepts better.

Code Example 1

kable(..., label = "something")

Code Example 2

kable(..., label = "something")

Learn ReactJs, React Native from akashmittal.com