This is my first question so here goes...
my data set is
person = c("a","a","a","a","b","b","b","b","c","c","d","d","d","d","d","e","e","e","f")
training = c("q1","q2","q7","q4","q1","q2","q3","q4","q3","q4","q3","q4","q5","q6","q99","q18","q1","q9","q99")
data = data.frame(person,training)
I want to do a countifs style function to count the number of times a person is recorded based on their position in the list- normally i would do this in excel with an absolute reference however i have 93k rows of data so it keeps crashing.
in Excel I would have:-
How do I replicate this in R for data$id
?