Learn R Programming

wrMisc (version 2.0.0)

nFragments0: Number Of Fragments After Cut At Specific Character(s)

Description

This function tells the number of fragments/entry when cutting after 'cutAt'

Usage

nFragments0(protSeq, cutAt, silent = FALSE, debug = FALSE, callFrom = NULL)

Value

This function returns a numeric vector with number of fragments for each entry 'protSeq' (names are 'protSeq')

Arguments

protSeq

(character) text to be cut

cutAt

(integer) position to cut

silent

(logical) suppress messages if TRUE

debug

(logical) additional messages for debugging

callFrom

(character) allows easier tracking of messages produced

See Also

more elaborate {nFragments}; cutAtMultSites

Examples

Run this code
tmp <- "MSVSRTMEDSCELDLVYVTERIIAVSFPSTANEENFRSNLREVAQMLKSKHGGNYLLFNLSERRPDITKLHAKVLEFGWPDLHTPALEKI" 
nFragments0(c(tmp,"ojioRij"),c("R","K"))

Run the code above in your browser using DataLab