PageRenderTime 18ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/fingerprint/man/facmat.Rd

http://github.com/rajarshi/cdkr
Unknown | 35 lines | 34 code | 1 blank | 0 comment | 0 complexity | 5c5c1ad2b1efbef8378736a3155f3ace MD5 | raw file
  1. \name{fp.factor.matrix}
  2. \alias{fp.factor.matrix}
  3. \title{
  4. Converts a List of Fingerprints to a data.frame of Factors
  5. }
  6. \description{
  7. This function will convert a \code{list} of fingerprint objects
  8. to a \code{data.frame} of factors with levels 1 and 0.
  9. }
  10. \usage{
  11. fp.factor.matrix(fplist)
  12. }
  13. \arguments{
  14. \item{fplist}{
  15. A list structure with each element being an object of class
  16. \code{fingerprint}. These will can be constructed by hand or
  17. read from disk via \code{\link{fp.read}}
  18. }
  19. }
  20. \value{
  21. A matrix with dimensions equal to \code{(length(fplist), length(fplist))}
  22. }
  23. \seealso{
  24. \code{\link{distance}}, \code{\link{fp.read}}
  25. }
  26. \examples{
  27. # make fingerprint objects
  28. fp1 <- new("fingerprint", nbit=6, bits=c(1,2,5,6))
  29. fp2 <- new("fingerprint", nbit=6, bits=c(1,4,5,6))
  30. fp3 <- new("fingerprint", nbit=6, bits=c(2,3,4,5,6))
  31. fp.factor.matrix( list(fp1,fp2,fp3) )
  32. }
  33. \keyword{logic}
  34. \author{Rajarshi Guha \email{rguha@indiana.edu}}