collapse_investigators: Collapse investigators to a single string

View source: R/format_investigators.R

collapse_investigatorsR Documentation

Collapse investigators to a single string

Description

There are (potentially) multiple investigators per grant. This function will reduce this to a single text string per grant, adding it to the grants table as the Investigators field.

Usage

collapse_investigators(grants)

Arguments

grants

the grants tibble

Details

Given the grants table, the current implementation is to have investigators (a tibble) nested inside of the grant tibble. This is convenient to retain the dplyr semantics, but at some point the investigators have to be collapsed to a single string. This is that function.

The job here is to take the investigators out, format the investigators per the style guidelines, then store the resulting strings back into the grants table.

Value

A grants tibble with a new column (Investigators).


steveneschrich/pgreportr documentation built on Jan. 13, 2025, 7:09 p.m.