Re: [R] Looping through multiple sub elements of a list to compare to multiple components of a vector

2015-12-02 Thread Adams, Jean
First, a couple posting tips. It's helpful to provide some example data people can work with. Also, please post in plain text (not html). If you have a single standard for comparison, you might find an approach like this helpful. # example data mylist <- c("AAEBCC", "AABDCC", "AABBCD") list.2 <

[R] Looping through multiple sub elements of a list to compare to multiple components of a vector

2015-12-02 Thread debra ragland via R-help
I think I am making this problem harder than it has to be and so I keep getting stuck on what might be a trivial problem.  I have used the seqinr package to load a protein sequence alignment containing 15 protein sequences;     > library(seqinr)    > x = read.alignment("proteins.fasta",format="f