Learn R Programming

xmpdf (version 0.2.1)

as_xmp: Coerce to xmp objects

Description

as_xmp() coerces objects into an xmp() object.

Usage

as_xmp(x, ...)

# S3 method for docinfo as_xmp(x, ...)

# S3 method for list as_xmp(x, ...)

Value

An xmp() object.

Arguments

x

An object that can reasonably be coerced to a xmp() object.

...

Further arguments passed to or from other methods.

Examples

Run this code
 di <- docinfo(author = "John Doe", title = "A Title")
 as_xmp(di)

 l <- list(`dc:creator` = "John Doe", `dc:title` = "A Title")
 as_xmp(l)

Run the code above in your browser using DataLab