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

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, etc. Can I narrow a search to only a "dat" word ?