PageRenderTime 193ms CodeModel.GetById 80ms app.highlight 3ms RepoModel.GetById 68ms 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{
 7This function will convert  a \code{list} of fingerprint objects
 8to a \code{data.frame} of factors with levels 1 and 0.
 9}
10\usage{
11fp.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{
21A 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
28fp1 <- new("fingerprint", nbit=6, bits=c(1,2,5,6))
29fp2 <- new("fingerprint", nbit=6, bits=c(1,4,5,6))
30fp3 <- new("fingerprint", nbit=6, bits=c(2,3,4,5,6))
31
32fp.factor.matrix( list(fp1,fp2,fp3) )
33}
34\keyword{logic}
35\author{Rajarshi Guha \email{rguha@indiana.edu}}