"QcMetadata"
classQcMetadata-class.Rd
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 can be created by calls of the form QcMetadata(...)
.
metadata
:Object of class "list"
that stores
the metadata variables. The list must be named. NA
and
empty characters are not allowed.
signature(x = "QcMetadata")
: subsets x
as a
new QcMetadata
instance.
signature(x = "QcMetadata")
: extracts a single
element of x
.
signature(x = "QcMetadata")
: return the
object
's metadata list. Also available as mdata
.
signature(x = "QcMetadata", value =
"list")
: sets the objects metadata. Also available as
mdata
.
signature(x = "QcMetadata")
: returns the number
of metadata variables.
signature(x = "QcMetadata")
: returns the names
of the metadata variables.
QcMetadata(metadata =
list(name = "John Doe",
lab = "Big Lab in Big Uni"))
#> Object of class "QcMetadata"
#> containing 2 variables.
## less typing
qmd <- QcMetadata(list(name = "John Doe",
lab = "Big Lab in Big Uni"))
mdata(qmd)
#> $name
#> [1] "John Doe"
#>
#> $lab
#> [1] "Big Lab in Big Uni"
#>
show(qmd)
#> Object of class "QcMetadata"
#> containing 2 variables.
print(qmd)
#> name
#> [1] "John Doe"
#> lab
#> [1] "Big Lab in Big Uni"