Learn R Programming

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

398

Version

1.30

License

GPL (>= 2)

Maintainer

Abdolreza Mohammadi

Last Published

September 10th, 2026

Functions in liver (1.30)

risk

Risk data set
scaler

Feature scaling
drug

drug data set
wholesale_customers

Wholesale Customer Spending Data
skewness

Skewness
house

house data set
skim

Skim a data frame to get useful summary statistics
insurance

insurance data set
house_price

house_price dataset
zscore

Z-score scaling of numerical variables
one.hot

One Hot Encoder
mse

Mean Squared Error (MSE)
mae

Mean Absolute Error (MAE)
partition

Partition Data
marketing

marketing data set
minmax

Min-Max scaling of numerical variables
purchase_intention

Online Shopper Purchase Intention Data
find.na

find.na
mortgage

Mortgage data set
red_wines

Red wines data set
prop.conf

Confdidence interval for proportion
white_wines

White wines data set
t_conf

Confdidence interval for mean
z.conf

Confdidence interval for mean using z-distribution
accuracy

Average classification accuracy
creditcard_fraud

Credit Card Transactions for Fraud Detection
cpu_price

CPU Specifications and Market Prices
gapminder

Gapminder Data on Global Health, Income, and Population
conf.mat

Confusion Matrix
cereal

Cereal data set
churn

Churn dataset for Credit Card Customers
churn_mlc

Churn data set from MLC++ machine learing
doctor_visits

Doctor Visits and Health Care Utilization Data
conf.mat.plot

Plot Confusion Matrix
caravan

Caravan insurance data set
adult

adult data set
bike_demand

Seoul Bike Sharing Demand Data
advertising

advertising data set
bank

Bank marketing data set
churn_tel

churn_tel dataset
credit

South German Credit Data
kNN.plot

Visualizing the Optimal Number of k
kNN

k-Nearest Neighbour Classification
loan

Loan Application and Approval Data
liver-package

liver: Foundations Toolkit and Datasets for Data Science