I am a beginner in R.
I have a vector of points like:
point <- c("A","B","B","C","C","A","A","C","B","A","B","A","A","C")
And I would like to count the number of transition between different points. That mean I would like the output as:
Transit_A_B: 2;
Transit_A_C: 2;
Transit_B_C: 1;
Transit_B_A: 2;
Transit_C_B: 1;
Transit_C_A: 1.
Many thanks to anyone can help me.