How to reset a sequence in a R dataframe's column, based on the levels of a different column
How to reset a sequence in a R dataframe's column, based on the levels of a different column Problem Description: I have data that logs subject and session information in columns like so: > Subject <- c(rep("A", 6), rep("B", 7)) > Session <- c(rep(1, 3), rep(2, 3), rep(8, 4), rep(9, 3)) > df <- data.frame(Subject, … Read more