QcMetadata-class: The '"QcMetadata"' class

Description Objects from the Class Slots Methods Author(s) Examples

Description

The QcMetadata class is a simple interface to metadata. The objects can be displayed with show for a summary and print for the content.

Objects from the Class

Objects can be created by calls of the form QcMetadata(...).

Slots

metadata:

Object of class "list" that stores the metadata variables. The list must be named. NA and empty characters are not allowed.

Methods

[

signature(x = "QcMetadata"): subsets x as a new QcMetadata instance.

[[

signature(x = "QcMetadata"): extracts a single element of x.

metadata

signature(x = "QcMetadata"): return the object's metadata list. Also available as mdata.

metadata<-

signature(x = "QcMetadata", value = "list"): sets the objects metadata. Also available as mdata.

length

signature(x = "QcMetadata"): returns the number of metadata variables.

names

signature(x = "QcMetadata"): returns the names of the metadata variables.

Author(s)

Laurent Gatto <lg390@cam.ac.uk>

Examples

1
2
3
4
5
6
7
8
9
QcMetadata(metadata =
           list(name = "John Doe",
                lab = "Big Lab in Big Uni"))
## less typing
qmd <- QcMetadata(list(name = "John Doe",
                       lab = "Big Lab in Big Uni"))
mdata(qmd)
show(qmd)
print(qmd)

qcmetrics documentation built on Nov. 8, 2020, 7:45 p.m.