View source: R/format_investigators.R
collapse_investigators | R Documentation |
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.
collapse_investigators(grants)
grants |
the grants tibble |
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.
A grants tibble with a new column (Investigators).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.