Learn R Programming

knitcitations (version 0.6-2)

format_authoryear_p: format the author and year parenthetically

Description

This formats a single entry, though adjusted by author. This function is passed down to 'cite' by 'citep', wher it creates the actuall formatting on the first use.

Usage

format_authoryear_p(entry, char = "")

Arguments

entry
a bibentry
char
a character to append to the citation (to disambiguate). This is handled automatically by the cite function.

Value

  • the author-year citation