Description Usage Arguments Details Value Examples
AutoAff
facilitates the management for long author lists and their affiliations. The outputs include a text string of R Markdown syntax that can be knitted to create superscripted indices.
1 | AutoAff(X, affiliation)
|
X |
A user-supplied data frame with columns containing the authors' affiliations. |
affiliation |
Names of the variables containing affiliations. A character vector, see 'Examples'. |
Empty cells (for those authors with fewer affiliations) in X
have to be either NA
or ""
.
Copy and paste rmd
in result
into R Markdown and knit to Microsoft Word to get affiliation lists with superscripted indices. See 'Examples'.
This function returns a list with six elements:
rmd |
Indexed affiliations in R Markdown syntax, see 'Details'. |
affiliations |
Affiliations by order of appearance |
aff.count |
Number of different affiliations |
aut.count |
Number of authors |
index |
Indices of each author's affililation(s) |
missing |
Number of authors with no affiliations |
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.