Is there a way to check how an object was created in environment ?

Hi,
I would like to learn if any possibility exists apart from tediously going through lines i History panel to find out how a particular object was created in R environment ?
And second question: how being in History panel could I narrow the searching eg., my object is called dat, which matches data, dataframe, as.data.frame etc. Can I narrow a search to only a "dat" word ?