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

692

Version

1.27

License

GPL (>= 2)

Maintainer

Abdolreza Mohammadi

Last Published

February 18th, 2026

Functions in liver (1.27)

prop.conf

Confdidence interval for proportion
kNN.plot

Visualizing the Optimal Number of k
gapminder

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

Confdidence interval for mean using z-distribution
red_wines

Red wines data set
partition

Partition the data
one.hot

One Hot Encoder
skim

Skim a data frame to get useful summary statistics
skewness

Skewness
white_wines

White wines data set
fertilizer

Fertilizer data set
minmax

Min-Max scaling of numerical variables
t_conf

Confdidence interval for mean
mse

Mean Squared Error (MSE)
house_price

house_price dataset
scaler

Feature scaling
risk

Risk data set
mae

Mean Absolute Error (MAE)
marketing

marketing data set
corona

Corona data set
zscore

Z-score scaling of numerical variables
liver-package

liver: Foundations Toolkit and Datasets for Data Science
cereal

Cereal data set
conf.mat

Confusion Matrix
accuracy

Average classification accuracy
house

house data set
churn_tel

churn_tel dataset
caravan

Caravan insurance data set
conf.mat.plot

Plot Confusion Matrix
kNN

k-Nearest Neighbour Classification
insurance

insurance data set
bank

Bank marketing data set
drug

drug data set
churn_mlc

Churn data set from MLC++ machine learing
adult

adult data set
churn

Churn dataset for Credit Card Customers
advertising

advertising data set
find.na

find.na