searchTitle: A useful search function

Description Usage Arguments Value See Also Examples

Description

Used to find all titles in MOJO database matching a specific pattern

Usage

1
2
searchTitle(pattern, moviesDB, exact.match = FALSE,
  return.list = FALSE, return.url = FALSE)

Arguments

pattern

a character vector of length 1

moviesDB

a list of length 2, the first element containing movies names and the second associated URLs.

exact.match

logical. Whether to perform an exact match

return.list

logical. Whether to return the list of matched titles

return.url

logical. Whether to return URLs instead of matched titles names (cannot be used with 'return.list = T')

Value

a vector of matching title or matching URLs

See Also

fetchMovie()

Examples

1
searchTitle('star wars', moviesDB)

js2264/moviestats documentation built on May 30, 2019, 12:43 p.m.