Check to see if object has a td.data.frame in its class
any R Object.
is.data.frame returns TRUE if its argument is a data frame (that is, it has "td.data.frame" amongst its classes) and FALSE otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.