Hi I am analysing from a behavioural experiment comparing left and right turns of snails.
Basically I end up with a list of twenty values like this: R R R L R L L L L R R R R L L L R L R L I want to analyse runs of turns but would like to automate how this is processed and end up with a table that displays the frequency of the sequences (L, LL, LLL, R, RR, RRR etc). Is it possible to construct something like this using R and how would I go about doing it? Thanks Simon Boardman [[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.