get_content: Extract content from Datamuse API call.

Description Usage Arguments Value Examples

View source: R/rhymer.R

Description

Extract content from Datamuse API call.

Usage

1
get_content(full_path, return_type = "df", limit = 10)

Arguments

full_path

API path to append to Datamuse API endpoint.

return_type

type to return. Options are:

  • 'df' for data.frame.

  • 'word' for a single word.

  • 'random_word' or 'random word' or 'rand' for a random word.

  • 'vector' for a vector of words.

limit

max number of rows to return from the content dataframe.

Value

content returned from API call.

Examples

1
2
3
get_content("/words?rel_rhy=test", limit = 5)

get_content("/words?ml=test", limit = 20)

landesbergn/rhymer documentation built on May 29, 2019, 3:41 a.m.