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

as.bibliography(x, ...)
	# S3 method for bibliography
as.data.frame(x, ...)
	# S3 method for bibliography
[(x, n)
	# S3 method for bibliography
c(...)
	# S3 method for bibliography
print(x, n, ...)
	# S3 method for 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

# 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)
#> Object of class 'bibliography' containing 20 entries.
#>   Number containing abstracts: 20 (100%)
#> Number of sources: 16
#> Most common sources:
#>   Journal of Applied Ecology (n = 3)
#>   Forest Ecology and Management (n = 2)
#>   Landscape Ecology (n = 2)
#>   Acta Oecologica (n = 1)
#>   African Journal of Ecology (n = 1)
print(x)
#> A.I. Leal, A. Rainho et al. (2016) Modelling future scenarios to improve woodland landscapes for birds in the Mediterranean. Journal for Nature Conservation 30: 103-112
#> 
#> P.J. Harrison, Y. Yuan et al. (2016) Quantifying turnover in biodiversity of British breeding birds. Journal of Applied Ecology 53: 469-478
#> 
#> D.G. Nimmo, A. Haslem et al. (2016) Riparian tree cover enhances the resistance and stability of woodland bird communities during an extreme climatic event. Journal of Applied Ecology 53: 449-458
#> 
#> S. Bombaci & L. Pejchar (2016) Consequences of pinyon and juniper woodland reduction for wildlife in North America. Forest Ecology and Management 365: 34-50
#> 
#> A. Felton, P.O. Hedwall et al. (2016) The biodiversity contribution of wood plantations Contrasting the bird communities of Sweden's protected and production oak forests. Forest Ecology and Management 365: 51-60
x[1]
#> A.I. Leal, A. Rainho et al. (2016) Modelling future scenarios to improve woodland landscapes for birds in the Mediterranean. Journal for Nature Conservation 30: 103-112

# 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)