log_or_0 | R Documentation |
A function for computing the logarithm of every entry in a table with 0 for zero entries.
log_or_0(x, base = exp(1))
x |
A table or a (sparse) matrix. |
base |
Numeric specification of the base with respect to which logarithms are computed. |
An array with the logarithm of every entry and 0 for all zero entries.
SndT_Fra <- read.table(system.file("extdata", "SndT_Fra.txt", package = "svs"),
header = TRUE, sep = "\t", quote = "\"", encoding = "UTF-8",
stringsAsFactors = FALSE)
tab_SndT_Fra <- table(SndT_Fra)
log_or_0(tab_SndT_Fra)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.