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]]

