Learn R Programming

revtools (version 0.2.2)

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

Run this code
# NOT RUN {
# import some data
file_location<-system.file("extdata", "avian_ecology_bibliography.ris", package="revtools")
x<-read_bibliography(file_location)

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

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

Run the code above in your browser using DataLab