Learn R Programming

fingerprint (version 2.1)

as.character: Generates a String Representation of a Fingerprint

Description

The function returns a string of 1's and 0's corresponding to the fingerprint object supplied

Usage

## S3 method for class 'fingerprint':
as.character(x)

Arguments

x
An object of class fingerprint

Value

  • A string of 1's and 0's

Examples

Run this code
# make a fingerprint vector
fp <- new("fingerprint", nbit=32, bits=sample(1:32, 20))

# print out the string representation
as.character(fp)

Run the code above in your browser using DataLab