bibliography-methods {revtools} | R Documentation |
Methods for class 'bibliography'
Description
This is a small number of standard methods for interacting with class 'bibliography'. More may be added later.
Usage
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
# 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)
[Package revtools version 0.4.1 Index]