collapse_rows {tidypmc}R Documentation

Collapse a list of PubMed Central tables

Description

Collapse rows into a semi-colon delimited list with column names and cell values

Usage

collapse_rows(pmc, na.string)

Arguments

pmc

a list of tables, usually from pmc_table

na.string

additional cell values to skip, default is NA and ""

Value

A tibble with table and row number and collapsed text

Author(s)

Chris Stubben

Examples

x <- data.frame(
  genes = c("aroB", "glnP", "ndhA", "pyrF"),
  fold_change = c(2.5, 1.7, -3.1, -2.6)
)
collapse_rows(list(`Table 1` = x))

[Package tidypmc version 1.7 Index]