get_metadata: Identifies meta information within txt documents.

Description Usage Arguments Examples

View source: R/get_metadata.R

Description

Takes a single txt file as input. To operate on a vector of txt files, use get_metadata_doc().

Usage

1
2
3
get_metadata(from, number = NULL, encoding = "ASCII", lines.import = 200,
  rcrossref = TRUE, bibtex = FALSE, vars = NULL, file = NULL,
  rename.file = FALSE, start = NULL, end = NULL)

Arguments

encoding

Character encoding scheme of input txt file. Default is "utf-8".

lines.import

Number of lines that should be imported from the input txt file. Default is 2000.

rcrossref

Use rcrossref function to identify article meta data via CrossRef API? Default is TRUE. Currently, no useful other ways of identifying metadata are implemented.

bibtex

Should reference be exported as bibtex? Works only with rcrossref = TRUE. Default is FALSE.

vars

Which variables should be returned? Specify as character vectors. By default, all available variables are returned.

filename

Input file; assumed to be txt format..

rename.files

Rename the text files with information found online. Default = FALSE.

Examples

1
2
3
4
5
6
7
## Not run: 
 setwd("C:/data")
 number <- 20 # or do not specify
 get_metadata_doc_nv(folder)
 ...set also other arguments in the funcion....

## End(Not run)

paulcbauer/citationsr documentation built on May 3, 2019, 5:47 p.m.