Learn R Programming

insight (version 0.14.5)

reshape_ci: Reshape CI between wide/long formats

Description

Reshape CI between wide/long formats.

Usage

reshape_ci(x)

Arguments

x

A data frame containing columns named CI_low and CI_high.

Examples

Run this code
# NOT RUN {
x <- data.frame(
  Parameter = c("Term 1", "Term 2", "Term 1", "Term 2"),
  CI = c(.8, .8, .9, .9),
  CI_low = c(.2, .3, .1, .15),
  CI_high = c(.5, .6, .8, .85),
  stringsAsFactors = FALSE
)
reshape_ci(x)
reshape_ci(reshape_ci(x))
# }

Run the code above in your browser using DataLab