string2error | R Documentation |
takes a string of the form "x(dx)", where dx are the error digits and returns a numeric vector c(x, y), where y is dx as a proper numeric value.
string2error(x)
x |
Input character string. |
can be used in combination with apply
a numeric vector with the first element the value and the second the error
string2error("0.35667(25)") s <- c("0.35667(25)", "0.667(50)") apply(array(s, dim=c(1, length(s))), 2, string2error)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.