Learn R Programming

⚠️There's a newer version (1.29) of this package.Take me there.

liver

The R package liver provides a suite of helper functions and a collection of datasets used in the book Data Science Foundations and Machine Learning with R: From Data to Decisions. Designed to make data science techniques accessible to individuals with minimal coding experience, it simplifies tasks such as data partitioning for out-of-sample testing and data transformations (z-score and min-max). Inspired by an ancient Persian idiom, the package likens this learning process to "eating the liver of data science," symbolizing deep and immersive engagement with the field. In addition to its helper functions, liver also includes a collection of datasets valuable for multivariate analysis.

Installation

To install the latest version of this package from CRAN, do the following from the R console:

install.packages("liver")

Loading

library(liver)

Example for Data Analysis

To see how to use the functionality of the package for data analysis:

Copy Link

Version

Install

install.packages('liver')

Monthly Downloads

678

Version

1.28

License

GPL (>= 2)

Maintainer

Abdolreza Mohammadi

Last Published

April 7th, 2026

Functions in liver (1.28)

doctor_visits

Doctor Visits and Health Care Utilization Data
drug

drug data set
conf.mat

Confusion Matrix
house

house data set
gapminder

Gapminder Data on Global Health, Income, and Population
mae

Mean Absolute Error (MAE)
risk

Risk data set
red_wines

Red wines data set
marketing

marketing data set
minmax

Min-Max scaling of numerical variables
house_price

house_price dataset
mortgage

Mortgage data set
insurance

insurance data set
mse

Mean Squared Error (MSE)
one.hot

One Hot Encoder
find.na

find.na
fertilizer

Fertilizer data set
cpu_price

CPU Specifications and Market Prices
credit

South German Credit Data
white_wines

White wines data set
z.conf

Confdidence interval for mean using z-distribution
skim

Skim a data frame to get useful summary statistics
t_conf

Confdidence interval for mean
liver-package

liver: Foundations Toolkit and Datasets for Data Science
loan

Loan Application and Approval Data
partition

Partition the data
scaler

Feature scaling
corona

Corona data set
kNN.plot

Visualizing the Optimal Number of k
kNN

k-Nearest Neighbour Classification
conf.mat.plot

Plot Confusion Matrix
prop.conf

Confdidence interval for proportion
skewness

Skewness
zscore

Z-score scaling of numerical variables
NMES1988

Health Care Utilization Data from the 1988 NMES Survey
churn_tel

churn_tel dataset
accuracy

Average classification accuracy
bank

Bank marketing data set
cereal

Cereal data set
caravan

Caravan insurance data set
churn

Churn dataset for Credit Card Customers
bike_demand

Seoul Bike Sharing Demand Data
adult

adult data set
churn_mlc

Churn data set from MLC++ machine learing
advertising

advertising data set