Learn R Programming

biogram (version 1.6.3)

simple2full: Convert encoding from simple to full format

Description

Converts an encoding from the simple format to the full format.

Usage

simple2full(x)

Arguments

x

encoding (see Details).

Details

The encoding should be named. Each name should correspond to a different amino acid or nucleotide.

Examples

Run this code
# NOT RUN {
aa1 = structure(c("1", "4", "3", "3", "4", "1", "2", "1", "2", "1", 
                  "1", "4", "1", "4", "4", "4", "4", "1", "4", "4"), 
                .Names = c("a", "c", "d", "e", "f", "g", "h", "i", 
                           "k", "l", "m", "n", "p", "q", 
                           "r", "s", "t", "v", "w", "y"))
simple2full(aa1)

# }

Run the code above in your browser using DataLab