Description Usage Arguments Value Author(s) Examples
Sanitizer function for xtable that converts scientific notation to latex style
1 | mysan(x)
|
x |
character or numeric vector |
sanitized character
Chris Wallace
1 2 3 4 5 6 7 8 | p<-10^(-seq(1,10))
format.pval(p) # scientific notation
mysan(p) # latex style
library(xtable)
df <- data.frame(numeric=p,scientific=format.pval(p),p.san=mysan(p))
print(xtable(df)) # doesn't work
print(xtable(df), sanitize.text.function=mysan) # looks nice!
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.