ci2df: Convert List to Data Frame

View source: R/ci2df.R

ci2dfR Documentation

Convert List to Data Frame

Description

Converts a list of confidence intervals into a data frame.

Usage

ci2df(x)

Arguments

x

A list where each element is a list of data frames or matrices containing confidence interval data as the result of the function bootstrap.

Details

This function takes a list of confidence intervals and converts it into a data frame. Each row represents a method, and each column represents a statistic. Confidence intervals are formatted as strings in the form [lower, upper].

Value

A data frame with rows representing methods and columns representing statistics, containing the confidence intervals.

Author(s)

Zeynel Cebeci, A. Firat Ozdemir, Engin Yildiztepe

See Also

bootstrap

Examples

ciresults <- list(
  method1 = data.frame(lower = c(-0.1, 0.2), upper = c(0.3, 0.4), row.names = c("stat1", "stat2")),
  method2 = data.frame(lower = c(0.2, 0.3), upper = c(0.4, 0.5), row.names = c("stat1", "stat2"))
)
ciresults

cidf <- ci2df(ciresults)
cidf

groupcompare documentation built on June 26, 2025, 1:08 a.m.