Nothing
#' @importFrom methods new
Dat.builder <- setRefClass("Dat", fields = c("Y", "meta", "missing.ind"),
methods = list(
getY = function() {
return(.self$Y)
},
productY = function(x) {
.self$Y %*% x
},
productYt = function(x) {
crossprod(.self$Y, x)
}
)
)
# Class which store data
Dat <- function(Y) {
dat <- Dat.builder(Y = read_input(Y),
meta = list(),
missing.ind = NULL)
dat$missing.ind <- which(is.na(dat$Y))
dat
}
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.