Hi all

 

I am analyzing bird song element sequences. I would like to know how can I
get how many times a given subsequence is found in single string sequence.  

 

 

For example:

 

If I have this single sequence:

 

ABCABAABABABCAB

 

I am looking for the subsequence "ABC". Want I need to get here is that the
subsequence is found twice. 

 

Any idea how can I do this?

 

Thanks in advance

 

 

Marcelo Araya-Salas

Ph.D.  Student

Avian Communication and Evolution Lab

Department of Biology

New Mexico State University

Lab: 575-646-4863

 


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to