as.define: Work with Data Definitions

Description Usage Arguments Value Note Author(s) References See Also Examples

Description

For an existing spec object, as.define creates a define object. For a define object, methods cascade: as.pdf calls as.document which calls tabular. Any of these may be called directly.

Usage

1
2
## S3 method for class 'spec'
as.define(x,sep = ' = ',collapse = '; ',escape = c('_','%','$'),...)

Arguments

x

a spec object

sep

separates codes from respective decodes where given

collapse

separates code/decode pairs where given

escape

values to escape for proper latex formatting

...

extra arguments, ignored

Value

object of class 'define'

Note

A newline character in collapse may be combined with fixed width column(s) in as.document to good effect (wrapping of long code/decode lists).

Author(s)

Tim Bergsma

References

http://metrumrg.googlecode.com

See Also

specification, as.spec tabular.define as.document.define as.pdf.define

Examples

1
example(`%matches%`)

metrumrg documentation built on May 2, 2019, 5:55 p.m.