Learn R Programming

PSSMCOOL (version 0.2.4)

k_mers: 3-mer and 2-mer in dataframe

Description

This function produces all possible 2-mers or 3-mers by counting paths of length 2 or 3 in a dataframe which is thought as a graph

Usage

k_mers(s, h)

Arguments

s

a dataframe with 2 columns

h

is length of k-mer

Value

all k-mers by counting paths of length h in dataframe which is considered as a graph

Examples

Run this code
# NOT RUN {
s1<-LETTERS[1:4]
s2<-LETTERS[3:6]
s<-data.frame(s1,s2)
dc<-k_mers(s,3)
# }

Run the code above in your browser using DataLab