lbsMergeAuthors: Merge given authors

Description Usage Arguments Details Value See Also Examples

View source: R/biblio.duplicates.authors.R

Description

Merges given sets of authors. For each group, the function maps all the related documents to a distinguished parent author (the first in a list) and removes the other, unused from then on, records (children).

Usage

1
lbsMergeAuthors(conn, idAuthors)

Arguments

conn

a connection object as produced by lbsConnect.

idAuthors

list of numeric vectors, each consisting of at least 2 authors' identifiers (see IdAuthor in the table Biblio_Authors); every first element of a vector becomes a parent to which other records are merged.

Details

This function is useful when one author is represented by many records in a Local Bibliometric Storage (a typical situation in case of data gathered from on-line bibliographic databases), e.g. prof. John Thomas Smith appears as 'Smith J.' and 'Smith J.T.'. Some merge procedures are often absolutely necessary if we would like to assess the impact of authors reliably.

Note that you may use lbsFindDuplicateAuthors to generate input to this function. It will try to suggest which records should be merged (see Examples below).

For safety reasons, an SQL transaction opened at the beginning of the removal process is not committed (closed) automatically. You should do it on your own (or rollback it), see Examples below.

Value

TRUE on success.

See Also

lbsFindDuplicateAuthors, lbsGetInfoAuthors, lbsAssess

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
conn <- lbsConnect("Bibliometrics.db");
## ...
listauth <- lbsFindDuplicateAuthors(conn,
   ignoreWords=c("van", "von", "der", "no", "author", "name", "available"),
   minWordLength=4,
   orderResultsBy=c("citations"),
   aggressiveness=1);
lbsMergeAuthors(conn, listauth);
dbCommit(conn);
## ...
## End(Not run)

CITAN documentation built on May 2, 2019, 9:33 a.m.