speakerSplit(dataframe, person.var = 1, sep = c("and", "&", ","), track.reps = FALSE)
TRUE
leaves the row names of person
variable cells that were repeated and stretched.Returns an expanded dataframe with person variable stretched and accompanying rows repeated.
Look for cells with multiple people and create separate rows for each person.
## <strong>Not run</strong>: # DATA$person <- as.character(DATA$person) # DATA$person[c(1, 4, 6)] <- c("greg, sally, & sam", # "greg, sally", "sam and sally") # # speakerSplit(DATA) # speakerSplit(DATA, track.reps=TRUE) # # DATA$person[c(1, 4, 6)] <- c("greg_sally_sam", # "greg.sally", "sam; sally") # # speakerSplit(DATA, sep = c(".", "_", ";")) # # DATA <- qdap::DATA #reset DATA # ## <strong>End(Not run)</strong>