PageRenderTime 24ms CodeModel.GetById 19ms RepoModel.GetById 1ms 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{
  24. A string of 1's and 0's or else a character vector of features (with their counts)
  25. }
  26. \examples{
  27. # make a fingerprint vector
  28. fp <- new("fingerprint", nbit=32, bits=sample(1:32, 20))
  29. # print out the string representation
  30. as.character(fp)
  31. }
  32. \keyword{logic}
  33. \keyword{methods}
  34. \author{Rajarshi Guha \email{rajarshi.guha@gmail.com}}