Package 'naruto'

Title: An Interface to the Naruto Database API
Description: The NarutoDB API <https://narutodb.xyz> offers a comprehensive database featuring all the characters, clans, villages, kekkei genkai, tailed beasts, teams, akatsuki, and rara members from the renowned anime and manga series *Naruto*. The API provides detailed information on each character, including their names, appearances, personalities, jutsus, and ninja tools. This package interfaces with the NarutoDB API through R.
Authors: Ernest Guevarra [aut, cre]
Maintainer: Ernest Guevarra <[email protected]>
License: MIT + file LICENSE
Version: 0.0.0.9000
Built: 2025-01-15 02:53:16 UTC
Source: https://github.com/OxfordIHTM/naruto

Help Index


Get all Naruto characters available from NarutoDB

Description

Get all Naruto characters available from NarutoDB

Usage

naruto_get_characters(
  base_url = "https://narutodb.xyz",
  json = FALSE,
  clean_names = TRUE
)

naruto_get_character_by_id(id, base_url = "https://narutodb.xyz")

Arguments

base_url

Base URL of the NarutoDB API. This is currently set to "https://narutodb.xyz".

json

Logical. Should output be returned as JSON? If FALSE (default), returns a data.frame. Otherwise, returns a standard JSON format output.

clean_names

Logical. Should data.frame output variable names be cleaned? If TRUE (default), variable names are tidied appropriately. Otherwise, variable names are kept as is. Only evaluated when json = FALSE.

id

A numeric value or vector of numeric values for the unique identifier of Naruto characters.

Value

If json = TRUE, returns a simplified and flattend data.frame. If json = FALSE, returns a standard JSON format output. See https://narutodb.xyz/docs/characters/characterSchema for schema of NarutoDB characters output.

Examples

naruto_get_characters()
naruto_get_character_by_id(id = 55)

Select genin

Description

Select genin

Usage

naruto_select_genin()