augment_tbl | R Documentation |
This function adds additional data to records in a table: data on the affiliation, publication output and co-authors of records in the table.
augment_tbl(tbl, conn, with_info, on_col = "AuthorId", ...)
tbl |
A query from |
conn |
An object of class |
with_info |
Which info should
|
on_col |
On which column should the information be joined? The default is "AuthorId", the unit of authors in MAG. Alternatively, use "CoAuthorId" to join information on co-authors (see below for details). |
... |
Additional arguments to be passed to
|
There are two main purposes for which this function can be currently used:
Join output and/or affiliation information to
author units. This works directly with one call to augment_tbl
.
Join information on affiliations of co-authors
of author units in tbl
. To do this, you need to call augment_tbl
twice:
First, to join the co-author information of author units in tbl
, and then
again to join the affiliations of co-authors,
using the option on_col = "CoAuthorId
.
Mixing the purposes is discouraged because it creates duplicated records.
A new tbl
with the columns specified with_info
added.
conn <- connect_to_db(db_example("AcademicGraph.sqlite"))
graduates <- get_links(conn, from = "graduates")
graduates <- augment_tbl(graduates, conn, with_info = "output")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.