,6), rep(2857,2), rep(6178,3), rep(6018,5), rep(5629,4),
> rep(7535,4))
> mydata <- as.data.frame(cbind(x,y))
> names(mydata) <- c('actions', 'agents')
> mydata
>
> transition <- vector('list', length(unique(mydata$agents)))#
> create
Hi all,
I'd like to thank those who helped me with my previous loop function
question with agents/events. I have solved the problem with the advice from
this community.
I have now moved on to the next step, which requires me to find all the
transition pair within an event. A sample data and the
Hi all,
I'm working on a loop function for a large dataset which contains 1000
different groups. I would like to reconstruct the order of events within
each group by using a loop function in R. (Currently the order of events are
based on the ascending order of prev_event within the group)
A demo
3 matches
Mail list logo