Description Usage Arguments Value Examples
Applies a symbolically defined transformation to the value
column of a data frame. Additionally, if a sigma
column is
present, those values are transformed according to Gaussian error
propagation.
1 | coordTransform(data, transformations)
|
data |
data frame with at least columns "name" (character) and "value" (numeric). Can optionally contain a column "sigma" (numeric). |
transformations |
character (the transformation) or named list of characters. In this case, the list names must be a subset of those contained in the "name" column. |
The data frame with the transformed values and sigma uncertainties.
1 2 3 | mydata1 <- data.frame(name = c("A", "B"), time = 0:5, value = 0:5, sigma = .1)
coordTransform(mydata1, "log(value)")
coordTransform(mydata1, list(A = "exp(value)", B = "sqrt(value)"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.