fp.factor.matrix {fingerprint}R Documentation

Converts a list of fingerprints to a data.frame of factors

Description

This function will convert a list of fingerprint to a data.frame of factors with levels 1 and 0.

Usage

fp.factor.matrix(fplist, size=1024)

Arguments

fplist A list structure with each element being a fingerprint vector. This structure will generally be obtained from fp.read.
size Length of the bit string represented by the fingerprint vector

Value

A matrix with dimensions equal to (length(fplist), length(fplist))

Author(s)

Rajarshi Guha rguha@indiana.edu

See Also

fp.distance, fp.read

Examples

# make a fingerprint vector
fp1 <- fp.from.bstring("110011")
fp2 <- fp.from.bstring("100111")
fp3 <- fp.from.bstring("011111")

fp.factor.matrix( list(fp1,fp2,fp3), size=6)

[Package fingerprint version 1.6 Index]