cmtkreg: Create and test cmtkreg objects that specify path to a CMTK...

Description Usage Arguments

View source: R/cmtkreg.R

Description

cmtkreg creates an object of class cmtkreg that describes one (or more) CMTK registrations. This is simply a character vector that also has class cmtkreg.

as.cmtkreg converts objects to class cmtkreg, minimally just by adding an approriate class attribute.

is.cmtkreg checks if an object is a cmtk registration either by checking class (default), or inspecting file.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
cmtkreg(x, returnDir = TRUE)

as.cmtkreg(x, ...)

## S3 method for class 'matrix'
as.cmtkreg(x, ...)

## S3 method for class 'reglist'
as.cmtkreg(x, ...)

## Default S3 method:
as.cmtkreg(x, ...)

is.cmtkreg(x, filecheck = c("none", "exists", "magic"))

Arguments

x

Path to a cmtk registration (either plain character vector or cmtkreg object)

returnDir

Whether to return the registration directory (default) or the actual file containing the registration

...

Additional arguments passed to methods. Currently ignored.

filecheck

Whether to check object class only (default: 'none') or find amd check if registration file exists or check magic value in first line of file.


nat documentation built on Sept. 6, 2021, 5:09 p.m.