PageRenderTime 122ms CodeModel.GetById 40ms app.highlight 0ms RepoModel.GetById 80ms app.codeStats 0ms

/fingerprint/man/string.Rd

http://github.com/rajarshi/cdkr
Unknown | 36 lines | 34 code | 2 blank | 0 comment | 0 complexity | 531d7aae2eb984e674968da4b856a60e MD5 | raw file
 1\name{as.character}
 2\alias{as.character}
 3\alias{as.character,fingerprint-method}
 4\alias{as.character,featvec-method}
 5\alias{as.character,feature-method}
 6\title{
 7  Generates a String Representation of a Fingerprint
 8}
 9\description{
10    The function returns a string of 1's and 0's or a character vector of
11    features depending on the nature of the fingerprint supplied.        
12}
13\usage{
14\S4method{as.character}{fingerprint}(x)
15\S4method{as.character}{featvec}(x)
16\S4method{as.character}{feature}(x)
17}
18\arguments{
19    \item{x}{
20      An object of class \code{fingerprint}, \code{featvec} or \code{feature}
21    }
22}
23\value{
24A string of 1's and 0's or else a character vector of features (with their counts)
25}
26
27\examples{
28# make a fingerprint vector
29fp <- new("fingerprint", nbit=32, bits=sample(1:32, 20))
30
31# print out the string representation
32as.character(fp)
33}
34\keyword{logic}
35\keyword{methods}
36\author{Rajarshi Guha \email{rajarshi.guha@gmail.com}}