Useful Tools for Jurimetrical Analysis Used by the Brazilian Jurimetrics Association

The Brazilian Jurimetrics Association (ABJ in Portuguese, see <> for more information) is a non-profit organization which aims to investigate and promote the use of statistics and probability in the study of Law and its institutions. This package implements general purpose tools used by ABJ, such as functions for sampling and basic manipulation of Brazilian lawsuits identification number. It also implements functions for text cleaning, such as accentuation removal.

abjutils is a toolkit with some useful functions widely used by the Brazilian Jurimetrics Association. Most functions help deal with lawsuit identification numbers (unified by CNJ, the National Council of Justice), while the rest are supposed to help ASCII-compliance and other formatting issues.

To install this package, simply run:

# To install CRAN version
# To install GitHub (dev) version


abjutils has many functions, but the most useful are listed below

  • rm_accent: removes diacritics from a string

  • escape_unicode: replaces accented characters by their unicode-escaped values (also an add-in)

  • carefully: a safe and protected vectorizer useful for things such as web scrapers


To cite this package, use citation("abjutils"):

To cite package ‘abjutils’ in publications use:

  Julio Trecenti and Fernando Correa (2014). abjutils:
  Useful Tools for Jurimetrical Analysis Used by the
  Brazilian Jurimetrics Association. R package version

A BibTeX entry for LaTeX users is

    title = {abjutils: Useful Tools for Jurimetrical Analysis Used by the Brazilian Jurimetrics Association},
    author = {Julio Trecenti and Fernando Correa},
    year = {2014},
    note = {R package version 0.0.1},
    url = {},


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.2.1 by Caio Lente, a month ago

Browse source code at

Authors: Julio Trecenti [aut], Athos Damiani [ctb], Fernando Correa [aut], Caio Lente [aut, cre], Brazilian Jurimetrics Association [cph]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports stringr, dplyr, httr, tibble, devtools, magrittr, plyr, purrr, rstudioapi, scales, stringi, glue, tidyr, progress

Suggests testthat

See at CRAN