srt.search {SRTtools}R Documentation

Search Index By KeyWord

Description

Return the subtitle index by specific keyword

Usage

srt.search(srt, key_word)

Arguments

srt

vector. The srt file read by srt.read.

key_word

character. The key word want to be searched in subtitles.

See Also

srt.read

Examples

srt_path <- system.file("extdata", "movie.srt", package="SRTtools")
srt <- srt.read(srt_path, encoding = 'utf-8')
srt.search(srt, key_word = "captain")


[Package SRTtools version 1.2.0 Index]