#'
#'
#'
subset_tensor <- function(tensor, idx1, idx2){
require(plyr)
require(magrittr)
plyr::llply(tensor, function(m){
m[idx1, idx2]
}) %>%
magrittr::set_names(names(tensor))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.