fetch_ucirepo {ucimlrepo}R Documentation

Fetch UCI ML Repository Dataset

Description

Loads a dataset from the UCI ML Repository, including the dataframes and metadata information.

Usage

fetch_ucirepo(name, id)

Arguments

name

Character. Dataset name, or substring of name.

id

Integer. Dataset ID for UCI ML Repository.

Details

Only provide name or id, not both.

Value

A list containing dataset metadata, dataframes, and variable info in its properties.

Examples

# Access Data by Name
iris_dl <- fetch_ucirepo(name = "iris")

# Access original data
iris_uci <- iris_dl$data$original

# Access features and targets
iris_features <- iris_dl$data$features
iris_targets <- iris_dl$data$targets

# Access Data by ID
iris_dl <- fetch_ucirepo(id = 53)


[Package ucimlrepo version 0.0.1 Index]