transtruct <-
function (struct, transformation, ...)
{
if (is.function(transformation)) {
tmp <- transformation(struct$x, ...)
struct$x <- tmp
} else {
struct$x <- f.relationshipinv(struct$x, transformation)
}
return(struct)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.