How To Install r-cran-forcats on Kali Linux

In this tutorial we learn how to install r-cran-forcats on Kali Linux. r-cran-forcats is GNU R package for working with categorical variables (factors)

Introduction

In this tutorial we learn how to install r-cran-forcats on Kali Linux.

What is r-cran-forcats

r-cran-forcats is:

The package offers helpers for reordering factor levels (including moving specified levels to front, ordering by first appearance, reversing, and randomly shuffling), and tools for modifying factor levels (including collapsing rare levels into other, ‘anonymising’, and manually ‘recoding’).

There are three methods to install r-cran-forcats on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install r-cran-forcats Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install r-cran-forcats using apt-get by running the following command:

sudo apt-get -y install r-cran-forcats

Install r-cran-forcats Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install r-cran-forcats using apt by running the following command:

sudo apt -y install r-cran-forcats

Install r-cran-forcats Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install r-cran-forcats using aptitude by running the following command:

sudo aptitude -y install r-cran-forcats

How To Uninstall r-cran-forcats on Kali Linux

To uninstall only the r-cran-forcats package we can use the following command:

sudo apt-get remove r-cran-forcats

Uninstall r-cran-forcats And Its Dependencies

To uninstall r-cran-forcats and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove r-cran-forcats

Remove r-cran-forcats Configurations and Data

To remove r-cran-forcats configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge r-cran-forcats

Remove r-cran-forcats configuration, data, and all of its dependencies

We can use the following command to remove r-cran-forcats configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge r-cran-forcats

Dependencies

r-cran-forcats have the following dependencies:

References

Summary

In this tutorial we learn how to install r-cran-forcats package on Kali Linux using different package management tools: apt, apt-get and aptitude.