Learn R Programming

dataset (version 0.4.1)

fix_contributor: Format contributors into a citation string

Description

Format a list of utils::person objects into a compact string, merging roles per person and normalizing names. Contributors without explicit roles are assigned "ctb". If NULL or ":unas" is supplied, returns ":unas".

Usage

fix_contributor(contributors = NULL)

Value

A single character string, e.g. "{Jane Doe [dtm, ctb]} and {John Smith [ctb]}".

Arguments

contributors

A vector or list of person objects, or NULL, or the character string ":unas".