All Projects → abjur → abjutils

abjur / abjutils

Licence: other
Useful functions for the Brazilian Jurimetrics Association

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to abjutils

devliver
Your private self hosted composer repository with user management
Stars: ✭ 50 (+19.05%)
Mutual labels:  package
public
util toolkit for go.golang 通用函数包
Stars: ✭ 135 (+221.43%)
Mutual labels:  toolkit
Laravel-Tongue
🎉 Finally a subdomain localization that works how you want it to work. 🌐
Stars: ✭ 28 (-33.33%)
Mutual labels:  package
MisskeyTools
Useful Tools for Professional Misskist
Stars: ✭ 16 (-61.9%)
Mutual labels:  toolkit
laravel-repoman
Set a payment deadline for the customer
Stars: ✭ 14 (-66.67%)
Mutual labels:  package
flutter web import js library
Import & use javascript libraries in your flutter web projects
Stars: ✭ 28 (-33.33%)
Mutual labels:  package
future.mapreduce
[EXPERIMENTAL] R package: future.mapreduce - Utility Functions for Future Map-Reduce API Packages
Stars: ✭ 12 (-71.43%)
Mutual labels:  package
secure compare
A secure compare for Elixir.
Stars: ✭ 17 (-59.52%)
Mutual labels:  package
macpack
Makes a macOS binary redistributable by searching the dependency tree and copying/patching non-system libraries.
Stars: ✭ 20 (-52.38%)
Mutual labels:  package
Releases
A Swift package for resolving released versions from a Git repository
Stars: ✭ 46 (+9.52%)
Mutual labels:  package
pfSense-pkg-WireGuard
This is a port of the original WireGuard UI bits as implemented by Netgate in pfSense 2.5.0 to a package suitable for rapid iteration and more frequent updating on future releases of pfSense.
Stars: ✭ 194 (+361.9%)
Mutual labels:  package
Odapter
C# code generator for Oracle packages
Stars: ✭ 16 (-61.9%)
Mutual labels:  package
gitflow-toolkit
A simple toolkit for GitFlow.
Stars: ✭ 176 (+319.05%)
Mutual labels:  toolkit
packager
Laravel Package Skeleton Generator - https://youtu.be/kQRQWzDEbGk
Stars: ✭ 20 (-52.38%)
Mutual labels:  package
InsideWorld
二次元老司机专用的本地媒体文件管理器,支持音视频、本子、图集、小说、哔哩哔哩视频等各类资源
Stars: ✭ 108 (+157.14%)
Mutual labels:  toolkit
toggler
Atom plugin - Toggle words and symbols
Stars: ✭ 21 (-50%)
Mutual labels:  package
gorift
A toolkit for reverse proxy and load balancer
Stars: ✭ 20 (-52.38%)
Mutual labels:  toolkit
cloup
Library to build command line interfaces (CLIs) based on Click. Cloup = Click + option groups, constraints, command aliases, command sections, help themes, "did you mean ...?" suggestions ...
Stars: ✭ 44 (+4.76%)
Mutual labels:  package
atom-toolbar-almighty
Atom editor's missing toolbar
Stars: ✭ 21 (-50%)
Mutual labels:  package
listenv
R package: Environments Behaving As Lists
Stars: ✭ 20 (-52.38%)
Mutual labels:  package

abjutils

CRAN_Status_Badge R build status

Visão Geral

{abjutils} is a toolkit with some useful functions created by the Brazilian Jurimetrics Association (Associação Brasileira de Jurimetria).

Most functions help with identifying lawsuit IDs as specified by the National Justice Council (Conselho Nacional de Justiça): NNNNNNN-DD.AAAA.J.TR.OOOO. The rest helps with ASCII and other formatting problems.

Installation

You can install the most recent version of {abjutils} with:

# CRAN
install.packages("abjutils")

# GitHub (dev)
install.packages("remotes")
remotes::install_github("abjur/abjutils")

Functions

Function Description
build_id() Add separators to ID
calc_dig() Calculate verification digit of an ID
carf_build_id() Add digits to CARF ID
carf_calc_dig() Calculate verification digit of a CARF ID
carf_check_dig() Check digits of a CARF ID
check_dig() Check digits of an ID
check_dig_vet() Check a verification digit vector
chrome_to_body() Convert POST parameters to a list
clean_cnj() Remove non-numeric characters from a string
clean_id() Remove separators from an ID
escape_unicode() Replace extended Latin characters with escaped Unicode
extract_parts() Extract ID parts
file_sans_ext() Extract filename without extension
gather_subjects() Gather ESAJ subjects automatically
lsos() List objects in an R session
pattern_cnj() Regex pattern to find IDs
precision() Apply precision scale
reais() Convert BRL strings into numbers
rm_accent() Remove diacritics from a string
sample_cnj() Create a random sample of IDs
separate_cnj() Separate a column of IDs into 6 columns with its components
tabela() Create a contingency table of a vector
test_fun() Check if all arguments from a function are set
verify_cnj() Check if ID conforms with CNJ’s standard
write_data() Write file to data/

Usage

Example 1:

# Remove separators from ID
abjutils::clean_id(c("1025736-09.2014.8.26.0100","0043877-64.2012.8.26.0100","1013689-61.2018.8.26.0100"))
#> [1] "10257360920148260100" "00438776420128260100" "10136896120188260100"

Example 2:

# Extract components from ID
abjutils::extract_parts(c("1025736-09.2014.8.26.0100","0043877-64.2012.8.26.0100","1013689-61.2018.8.26.0100"))
#> [[1]]
#>         N         D         A         J         T         O 
#> "1025736"      "09"    "2014"       "8"      "26"    "0100" 
#> 
#> [[2]]
#>         N         D         A         J         T         O 
#> "0043877"      "64"    "2012"       "8"      "26"    "0100" 
#> 
#> [[3]]
#>         N         D         A         J         T         O 
#> "1013689"      "61"    "2018"       "8"      "26"    "0100"

Example 3:

# Remove diacritics from string
abjutils::rm_accent("acórdão")
#> [1] "acordao"

Dependencies

{abjutils} requires R >= 3.6.

License

{abjutils} is licensed under MIT + file LICENSE

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].