bibliography-methods: Methods for class 'bibliography'

Description Usage Arguments Examples

Description

This is a small number of standard methods for interacting with class 'bibliography'. More may be added later.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
as.bibliography(x, ...)
	## S3 method for class 'bibliography'
as.data.frame(x, ...)
	## S3 method for class 'bibliography'
x[n]
	## S3 method for class 'bibliography'
c(...)
	## S3 method for class 'bibliography'
print(x, n, ...)
	## S3 method for class 'bibliography'
summary(object, ...)

Arguments

x

An object of class 'bibliography'

object

An object of class 'bibliography'

n

Number of items to select/print

...

Any further information

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# import some data
file_location <- system.file(
  "extdata",
  "avian_ecology_bibliography.ris",
  package = "revtools")
x <- read_bibliography(file_location, return_df = FALSE)

# basic descriptions
summary(x)
print(x)
x[1]

# append two bibliography objects
y <- c(x[1:5], x[2:4])

# conversion to and from data.frame
y <- as.data.frame(x)
x_new <- as.bibliography(y)

revtools documentation built on Jan. 8, 2020, 5:10 p.m.