# S4 implementation of employee class
#' constructor
#'
#' @param fname first name
#' @param lname last name
#' @return S4 class object
#' @export
employee4 <- function(fname, lname) {
setClass("employee4",
representation(
fname="character",
lname="character",
salary="numeric",
union="logical")
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.