Learn R Programming

tidypmc (version 2.0)

collapse_rows: 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)

Value

A tibble with table and row number and collapsed text

Arguments

pmc

a list of tables, usually from pmc_table

na.string

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

Author

Chris Stubben

Examples

Run this code
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))

Run the code above in your browser using DataLab