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.
Arguments
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
# NOT RUN {## 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# }