Learn R Programming

netmeta (version 3.2-0)

as.data.frame.netconnection: Create a data frame from an object of class netconnection

Description

The as.data.frame method returns a data frame containing information on membership of studies / pairwise comparisons to a (sub)network.

Usage

# S3 method for netconnection
as.data.frame(x, ...)

Value

A data frame is returned by the function

as.data.frame.

Arguments

x

An object of class netconnection.

...

Additional arguments (ignored).

See Also

netconnection

Examples

Run this code
# Artificial example with two subnetworks
#
t1 <- c("G", "B", "B", "D", "A", "F")
t2 <- c("B", "C", "E", "E", "H", "A")
#
nc2 <- netconnection(t1, t2)
print(nc2, details = TRUE)

as.data.frame(nc2)

Run the code above in your browser using DataLab