cleanCaptionData: Clean up caption data

Description Usage Arguments Value Examples

View source: R/captions.R

Description

Clean up caption data, by removing:

and, optionally remove non-spoken content annotation is in square brackets or parenthesis

https://developers.google.com/youtube/v3/docs/captions/list

Usage

1
cleanCaptionData(captionData, removeNonSpokenAnnotations = TRUE)

Arguments

captionData

Caption data from prior call to getCaptionData

removeNonSpokenAnnotations

Remove non-spoken annotations (default TRUE)

Value

Returns a data.frame of results

Examples

1
2
3
4
## Not run: 
cleanData = cleanCaptionData(captionData)

## End(Not run)

EricGoldsmith/rYouTube documentation built on Dec. 17, 2021, 7:21 p.m.