Closed nilsreiter closed 7 years ago
Implementation for the very last act/scene:
tail <- function(input, by="act") {
if (by == "act") {
input[,.SD[begin.Act == max(begin.Act)],.(corpus,drama)][]
} else if (by == "scene") {
input[,.SD[begin.Scene == max(begin.Scene)],.(corpus,drama)][]
}
}
Add functions
head()
andtail()
to get the first/lastn
acts or scenes