```
<- filter(mtcars, cyl == 4)
filtered #> filter: removed 21 out of 32 rows (66%)
```

# R packages

## Segregation

This package makes it easy to to calculate entropy-based segregation indices, such as the Mutual Information Index (M) and Theil’s Information Index (H). It also implements several methods to decompose the difference between two M indices.

More information:

- Github
- Documentation
- CRAN
- More applied examples are also given in Kyle Walker’s book
*Analyzing US Census Data: Methods, Maps, and Models in R*(CRC Press, 2023)

## Tidylog

Tidylog provides feedback about basic data manipulations when using dplyr. This is inspired by other statistical software, such as Stata, which will give better feedback than R in many situations. Once enabled, tidylog will let you know how many rows you removed when filtering…

… or how many cases you recoded:

```
<- mutate(mtcars, am = recode(am, `0 `= 2))
recoded #> mutate: changed 19 values (59%) of 'am' (0 new NA)
```

More information: