R: Class "feature"

feature-class {fingerprint} | R Documentation

## Class "feature"

### Description

This class represents features - arbitrary alphanumeric sequences that are used to characterize molecular substructures (though there is no real restriction to molecules). A feature is associated with an integer count, indicating the occurence of that feature in a molecule. The default value is 1.

### Objects from the Class

Objects can be created by calls of the form `new("feature", ...)`.

### Slots

`feature`:

  Object of class `"character"` ~ The string representation of a feature

`count`:

  Object of class `"integer"` ~ The occurence of the feature. Default is 1

`.Data`:

  ???

### Methods

count

  `signature(object = "feature")`: Return the count associated with the feature

### Author(s)

Rajarshi Guha rajarshi.guha@gmail.com

### See Also

`featvec-class`

### Examples

      ## create a new feature
      f <- new("feature", feature='ABCD', count=as.integer(1))

      ## modify the feature string and the count
      feature(f) <- 'UXYZ'
      count(f) <- 10

[Package fingerprint version 3.5.7 Index]