read_bib: Read bibliographic data

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/read_bib.R

Description

Read data from Web of Science 'WoS' and Scopus. It's possible read one o more files and set the column names.

Usage

1
2
read_bib(database = NULL, extension = NULL, directory = NULL,
  col.names = FALSE, col.names.style = NULL, fileEncoding = "utf-8")

Arguments

database

WoS or Scopus data base.

extension

txt or csv extension.

directory

the path to find the files, if the files are in a different directory.

col.names

logical, if TRUE return optional name of column to the data.

col.names.style

uppercase, lower and good4read.

Details

Write the details about the functions here! Can be in more that one line.

Value

a data frame with the data imported.

Author(s)

Roney Fraga Souza, Winicius Sabino

See Also

read.table.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: Import data from Web of Science (WoS)
p <- read_bib(
             database='WoS', 
             extension='txt',
             directory='/Users/roney/data/WoS tab-delimited Windows',
             col.names=TRUE,
             col.names.style='good4read'
             )
names(p);dim(p)
## Not run: or for a scopus csv data
p <- read_bib( database='Scopus', extension='csv', col.names=TRUE, col.names.style='good4read')
names(p);dim(p)

roneyfraga/bibr documentation built on May 27, 2019, 1:50 p.m.