1 | testAssembly(x)
|
x |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (x)
{
if (!require(tidyverse)) {
install.packages("tidyverse")
require(tidyverse)
}
x %>% mutate(bin = ntile(b, 30)) %>% group_by(bin) %>% sample_n(1) %>%
dplyr::select(item_id, system_id, item, b, a1, d1, d2,
d3, bin)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.