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

View source: R/as.data.frame.netconnection.R

as.data.frame.netconnectionR Documentation

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 class 'netconnection'
as.data.frame(x, ...)

Arguments

x

An object of class netconnection.

...

Additional arguments (ignored).

Value

A data frame is returned by the function as.data.frame.

Author(s)

Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de

See Also

netconnection

Examples

# 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)


netmeta documentation built on June 23, 2024, 9:06 a.m.