bl.ocks.org test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| id_maker <- function(prefix = make_random_string()) { | |
| function(id) { | |
| paste(prefix, id, sep = "_") | |
| } | |
| } | |
| make_random_string <- function(n=1, len=12, chars=c(0:9, letters, LETTERS)) { | |
| randomString <- sapply(seq(n), function(i) { | |
| paste(sample(chars, len, replace = TRUE), collapse = "") | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #' convert a dgcMatrix to libsvm format | |
| #' @param sm A sparse matrix of class "dgcMatrix" | |
| #' @param label label for dataset, default is 0 | |
| #' @return a vector of characters containing index:value | |
| #' @example | |
| #' regMat <- matrix(runif(16), 4, 4) | |
| #' regMat[sample(16, 5)] <- 0 | |
| #' sparseMat <- Matrix(regMat, sparse = T) | |
| #' conv2libsvm(sparseMat) | |
| conv2libsvm <- function(sm, label = rep(0, dim(sm)[1])) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Title: Dynamically Remove UI Elements | |
| Author: beader.chen@gmail.com | |
| DisplayMode: Showcase | |
| Type: Shiny |
NewerOlder