Learn R Programming

omdbapi (version 0.2.0.9000)

get_genres: Get genres from an omdb object as a vector

Description

Splits the field at commas and returns a vector of individual entries

Usage

get_genres(omdb)

Arguments

omdb
an object returned by find_by_title or find_by_id

Value

A character vector of genres

Examples

Run this code
get_genres(find_by_id("tt0031381"))

Run the code above in your browser using DataLab