Nothing
#' @importFrom DelayedArray is_sparse
.make_np_friendly <- function(x) {
if (is_sparse(x)) {
as(x, "dgCMatrix")
} else {
as.matrix(x)
}
}
#' @importFrom DelayedArray t
.extractor_python_dict <- function(thing, names, single=FALSE, transpose=FALSE) {
if (single) {
values <- lapply(names, function(x) {
if (transpose) t(thing[x])
else thing[x]
})
} else {
values <- lapply(names, function(x) {
if (transpose) t(thing[[x]])
else thing[[x]]
})
}
names(values) <- names
values
}
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.