Description Usage Arguments Examples
This is a helper function for OnocoSigNB. Given the bin info, and bined data, replace each bin with the corresponding Likelihood ratio.
1 | replaceBinswithLR(bin_vector, the_bin_info)
|
bin_vector |
|
the_bin_info |
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 (bin_vector, the_bin_info)
{
new_bin_vector = lapply(1:len(bin_vector), function(x) {
the_bin = as.character(bin_vector[x])
bin_value = the_bin_info[the_bin]
bin_value
})
new_bin_vector = unlist(new_bin_vector)
return(new_bin_vector)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.