Learn R Programming

forestplot (version 3.0.0)

prPopulateList: Populate a list corresponding to matrix specs

Description

This function helps the forestplot to deal with different arguments for the confidence intervals.

Usage

prPopulateList(elmnt, no_rows, no_depth, missing_rows, is.summary, summary)

Value

list The function returns a list that has the format [row][col] where each element contains the corresponding element

Arguments

elmnt

The element item/list/matrix. If a list it should be in the format [row][col], the function tries to handle this but in cases where the columns and rows are the same it will not know what is a column and what is a row.

no_rows

Number of rows

no_depth

Number of outcomes per row, i.e. depth

missing_rows

The rows that don't have data

is.summary

A vector indicating by TRUE/FALSE if the value is a summary value which means that it will have a different font-style