Nothing
#_______________________________________________________________________________
#---- protocol class ----
#_______________________________________________________________________________
#'
#' Protocol class.
#'
#' @export
setClass(
"protocol",
representation(
treatment = "treatment",
observations = "observations_set"
),
prototype=prototype(treatment=new("treatment"), observations=new("observations_set"))
)
#_______________________________________________________________________________
#---- add ----
#_______________________________________________________________________________
setMethod("add", signature=c("protocol", "treatment_entry"), definition=function(object, x) {
return(object@treatment %>% add(x))
})
setMethod("add", signature=c("protocol", "observations"), definition=function(object, x) {
return(object@observations %>% add(x))
})
#_______________________________________________________________________________
#---- show ----
#_______________________________________________________________________________
setMethod("show", signature=c("protocol"), definition=function(object) {
cat("Protocol:")
cat("\n")
show(object@treatment)
show(object@observations)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.