Movatterモバイル変換


[0]ホーム

URL:


IndiAPIs

License: MIT

TheIndiAPIs package provides a unified interface toaccess open data from theWorld Bank API and theREST Countries API, with a focus onIndia. It allows users to retrieve up-to-date orhistorical information on topics such as economic indicators,international demographic statistics, and key geopolitical detailsrelated to India.

In addition to API-access functions, the package includes one of thelargest curated collections of open datasets focused onIndia. These datasets cover a wide range of topicsincluding population, economy, weather, politics, health, biodiversity,sports, agriculture, cybercrime, infrastructure, and more.

Installation

You can install theIndiAPIs package from CRAN with thefollowing R function:

install.packages("IndiAPIs")

Usage

After installation, load the package and start exploring and usingits functions and datasets.

library(IndiAPIs)

IndiAPIs Functions

Below is a list of the main functions included in the package:

Dataset Suffixes

Each dataset inIndiAPIs is labeled with asuffix to indicate its structure and type:

Datasets Included inIndiAPIs

In addition to API access functions,IndiAPIs offers oneof the largest curated collections of open datasets focused onIndia. These preloaded datasets cover a wide range oftopics including population, economy, weather, politics, health,biodiversity, sports, agriculture, cybercrime, infrastructure, and more.Below are some featured examples:

Example Code:

# Load the packagelibrary(IndiAPIs)# Retrieves essential information about Indiaget_country_info_in()# Get India's Population (Total) from World Bankget_india_population()# Load a datasetdata(India_census2011_tbl_df)# Shows six rows of the datasethead(India_census2011_tbl_df)# Display the structure of the datasetstr(India_census2011_tbl_df)# Shows the whole datasetView(India_census2011_tbl_df)

[8]ページ先頭

©2009-2025 Movatter.jp