rbind_bib: Merging multiple Bib file

Description Usage Arguments Value Author(s) Examples

View source: R/rbind_bib.R

Description

Use read_bib2tib to read multiple Bib files. For example, the returned objects are tib1, rib2,tib3 ,.... In general, the column names of tib1, tib2,..., etc. are not the same. Therefore, this function is used to merge tib1, TiB2,.... if the column name does not exist, let it be NA

Usage

1
rbind_bib(..., fill = FALSE)

Arguments

...

(generalized) tibble or data.frame.

fill

logical,if TRUE the fills missing columns with NAs. By default FALSE.

Value

A tibble.

Author(s)

ShuCai Zou

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Read from .bib file:
require(journalabbr)
path1 = system.file("extdata", "testfile_2.bib", package = "journalabbr", mustWork = TRUE)
path2 = system.file("extdata", "testfile_3.bib", package = "journalabbr", mustWork = TRUE)
path3 = system.file("extdata", "testfile_4.bib", package = "journalabbr", mustWork = TRUE)
tib1 <- read_bib2tib(path1)
tib2 <- read_bib2tib(path2)
tib3 <- read_bib2tib(path3)
df = rbind_bib(tib1,tib2,fill=TRUE)
df1 = rbind_bib(tib1,tib2,tib3,fill=TRUE)
## dont run
# rbind_bib(tib1,tib2)

journalabbr documentation built on April 20, 2021, 5:07 p.m.