srt.search {SRTtools} | R Documentation |
Return the subtitle index by specific keyword
srt.search(srt, key_word)
srt |
vector. The srt file read by |
key_word |
character. The key word want to be searched in subtitles. |
srt_path <- system.file("extdata", "movie.srt", package="SRTtools")
srt <- srt.read(srt_path, encoding = 'utf-8')
srt.search(srt, key_word = "captain")