Learn R Programming

logos (version 0.1.0)

suggest_closest_book: Suggest the closest matching book name

Description

This function suggests the closest matching book name based on the input string. It uses approximate string matching to find similar book names from the provided list.

Usage

suggest_closest_book(book, book_list)

Value

A character vector of suggested book names or NA if no close match is found.

Arguments

book

A character vector of book names to check.

book_list

A character vector of valid book names to match against.