How To Install r-cran-broom on Ubuntu 18.04

In this tutorial we learn how to install r-cran-broom on Ubuntu 18.04. r-cran-broom is convert statistical analysis objects into tidy data frames with GNU R

Introduction

In this tutorial we learn how to install r-cran-broom on Ubuntu 18.04.

What is r-cran-broom

r-cran-broom is:

Convert statistical analysis objects from R into tidy data frames, so that they can more easily be combined, reshaped and otherwise processed with tools like ‘dplyr’, ’tidyr’ and ‘ggplot2’. The package provides three S3 generics: tidy, which summarizes a model’s statistical findings such as coefficients of a regression; augment, which adds columns to the original data such as predictions, residuals and cluster assignments; and glance, which provides a one-row summary of model-level statistics.

There are three methods to install r-cran-broom on Ubuntu 18.04. 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-broom 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-broom using apt-get by running the following command:

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

Install r-cran-broom Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install r-cran-broom

Install r-cran-broom Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install r-cran-broom

How To Uninstall r-cran-broom on Ubuntu 18.04

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

sudo apt-get remove r-cran-broom

Uninstall r-cran-broom And Its Dependencies

To uninstall r-cran-broom and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

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

Remove r-cran-broom Configurations and Data

To remove r-cran-broom configuration and data from Ubuntu 18.04 we can use the following command:

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

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

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

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

References

Summary

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