Learn R Programming

myepisodes (version 1.1.1)

ep_number: Shows episode season/number in format SxNN

Description

Returns episode from a show info list, of the form e.g. 1x12, 8x04, left padding the episode number to max_length (default 2) if necessary.

Usage

ep_number(show_item, max_length = 2)

Arguments

show_item
a show item list, typically from show_info_from_xml
max_length
the length to pad episode numbers to, usually 2 is standard.

Value

character of form NxNN

See Also

show_info_from_xml