QcMetadata-class {qcmetrics} | R Documentation

## The `"QcMetadata"` class

### 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

### Examples

    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)

[Package qcmetrics version 1.32.0 Index]