setClass("A",
slots = list(start = "numeric", end = "numeric"),
prototype = prototype(
start = integer(),
end = integer()))
## define the "[" operator for A
setMethod("[", "A", function(x, i, j, ...) { return(c(x@start[i], x@end[i])) })
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.