get_content: Extract content from Datamuse API call.

View source: R/rhymer.R

get_contentR Documentation

Extract content from Datamuse API call.

Description

Extract content from Datamuse API call.

Usage

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

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

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

rhymer documentation built on Jan. 5, 2023, 5:09 p.m.