INTRODUCTION The package DT offers an R “window” to JavaScript DataTables. R uses data in matrices’ or data frames’ form; with DT, they can be displayed as tables on HTML pages. The important thing is that filtering, pagination, sorting, etc. are used to transform it into a really useful tool. Before proceeding, please follow our […]

# tables

## How to Create Interactive Data Tables With DT

.INTRODUCTION The package “DT” offers an R “window” to JavaScript DataTables. R uses data in matrices’ or data frames’ form and with DT, they can be displayed as tables on HTML pages. The important thing is that filtering, pagination, sorting, etc. are used to transform it into a really useful tool. PACKAGE INSTALLATION & DATA […]

## Cross Tabulation with Xtabs exercises

The xtabs() function creates contingency tables in frequency-weighted format. Use xtabs() when you want to numerically study the distribution of one categorical variable, or the relationship between two categorical variables. Categorical variables are also called “factor” variables in R. Using a formula interface, xtabs() can create a contingency table, (also a “sparse matrix”), from cross-classifying […]

## Complex Tables – Exercises

The ftable() function combines Cross-Tabulation with the ability to format , or “flatten”, contingency tables of 3 or more dimensions. The resulting tables contain the combined counts of the categorical variables, (also factor variables in R), that are then arranged as a matrix, whose rows and columns correspond to the original data’s rows and columns. […]

## Data Exploration with Tables exercises

The table() function is intended for use during the Data Exploration phase of Data Analysis. The table() function performs categorical tabulation of data. In the R programming language, “categorical” variables are also called “factor” variables. The tabulation of data categories allows for Cross-Validation of data. Thereby, finding possible flaws within a dataset, or possible flaws […]