annotationstable: Create annotationstable

Description Usage Arguments Examples

View source: R/annotationstable.R

Description

The annolite package uses an annotationstable to store and manage the annotations of an document. An annotationstable object is a S3 superclass of a data.frame. An annotationstable is a data.frame with the following columns:

The function annotationstable() serves as a constructor for an annotationstable. If called without arguments, an empty annotationstable is returned. If called with arguments, all input vectors need to have the same length.

Usage

1
2
3
4
5
6
7
8
annotationstable(
  text = character(),
  code = character(),
  color = character(),
  annotation = character(),
  start = integer(),
  end = integer()
)

Arguments

text

A character vector.

code

A character vector.

color

A character vector.

annotation

A character vector.

start

A integer vector

end

integer A integer vector.

Examples

1
empty_annotationstable <- annotationstable()

PolMine/annolite documentation built on Dec. 31, 2020, 4:18 p.m.