encoding2df: Convert encoding to data frame

Description Usage Arguments Details Value See Also Examples

View source: R/create_encoding.R

Description

Converts an encoding to a data frame.

Usage

1

Arguments

x

encoding.

sort

if TRUE rows are sorted according to elements.

Details

The encoding is a list of groups to which elements of an alphabet should be reduced. All elements of the alphabet (all amino acids or all nucleotides) should appear in the encoding.

Value

data frame with two columns. First column represents an index of a group in the supplied encoding and the second column contains all elements of the encoding.

See Also

calc_ed: calculate the encoding distance between two encodings. encoding2df: converts an encoding to a data frame. validate_encoding: validate a structure of an encoding.

Examples

1
create_encoding(aaprop[1L:5, ], 5)

biogram documentation built on March 31, 2020, 5:14 p.m.