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 Using R. 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

660

Version

1.19

License

GPL (>= 2)

Maintainer

Abdolreza Mohammadi

Last Published

March 18th, 2025

Functions in liver (1.19)

corona

Corona data set
insurance

insurance data set
fertilizer

Fertilizer data set
housePrice

housePrice dataset
marketing

marketing data set
risk

Risk data set
scaler

Feature scaling
mae

Mean Absolute Error (MAE)
kNN

k-Nearest Neighbour Classification
kNN.plot

Visualizing the Optimal Number of k
partition

Partition the data
skim

Skim a data frame to get useful summary statistics
redWines

Red wines data set
skewness

Skewness
zscore

Z-score scaling of numerical variables
mse

Mean Squared Error (MSE)
minmax

Min-Max scaling of numerical variables
one.hot

One Hot Encoder
whiteWines

White wines data set
churnTel

churnTel dataset
accuracy

Average classification accuracy
cereal

Cereal data set
bank

Bank marketing data set
churnCredit

Churn dataset for Credit Card Customers
churn

Churn data set
advertising

advertising data set
adult

adult data set
conf.mat.plot

Plot Confusion Matrix
conf.mat

Confusion Matrix
find.na

find.na
house

house data set
liver-package

liver: "Eating the Liver of Data Science"