| reshape_ci | R Documentation |
Reshape CI between wide/long formats.
reshape_ci(x, ci_type = "CI")
x |
A data frame containing columns named |
ci_type |
String indicating the "type" (i.e. prefix) of the interval
columns. Per easystats convention, confidence or credible intervals are
named |
A data frame with columns corresponding to confidence intervals reshaped either to wide or long format.
x <- data.frame(
Parameter = c("Term 1", "Term 2", "Term 1", "Term 2"),
CI = c(0.8, 0.8, 0.9, 0.9),
CI_low = c(0.2, 0.3, 0.1, 0.15),
CI_high = c(0.5, 0.6, 0.8, 0.85),
stringsAsFactors = FALSE
)
reshape_ci(x)
reshape_ci(reshape_ci(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.