rocnp

Tools for working with the Romanian Personal Numeric Code.

https://github.com/dragosmg/rocnp

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.5%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Tools for working with the Romanian Personal Numeric Code.

Basic Info
  • Host: GitHub
  • Owner: dragosmg
  • License: other
  • Language: R
  • Default Branch: main
  • Homepage:
  • Size: 217 KB
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • Open Issues: 6
  • Releases: 1
Created over 5 years ago · Last pushed 11 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# rocnp


[![R-CMD-check](https://github.com/dragosmg/rocnp/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/dragosmg/rocnp/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/dragosmg/rocnp/graph/badge.svg)](https://app.codecov.io/gh/dragosmg/rocnp)
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![CRAN status](https://www.r-pkg.org/badges/version/rocnp)](https://CRAN.R-project.org/package=rocnp)


The goal of {rocnp} is to provide a set of functions for working with Romanian
personal numeric codes. 

## Features

rocnp includes the following functionality for working with Romanian personal numeric codes (PNC / CNP):

* check validity using `check_cnp_is_valid()`
* decompose the code in the parts that make it up with `decompose_cnp()`
* extract the various components with the `get_()` family of functions:
    * `get_birth_year()`
    * `get_birth_month()`
    * `get_county()`, etc.

## Installation

You can install the released version of {rocnp} from [CRAN](https://CRAN.R-project.org):

``` r
install.packages("rocnp")
```

Alternatively, if you need the development version from [GitHub](https://github.com/dragosmg/rocnp), install it with

``` r
# install.packages(devtools)
devtools::install_dev("rocnp")
```

## Usage

This is an example which shows you how to use some of the functions in rocnp:

```{r example}
library(rocnp)

# these are synthetically generated CNPs
# check CNP is valid
check_cnp_is_valid(1940616346114)

# split CNP into components
decompose_cnp(6201206018078)

# extract birth year 
get_birth_year(1940616346114)

# extract birth month
get_birth_month(1940616346114)

# extract county 
get_county(6201206018078)
```

Owner

  • Name: Dragoș Moldovan-Grünfeld
  • Login: dragosmg
  • Kind: user
  • Location: London, UK

R developer

GitHub Events

Total
  • Issues event: 5
  • Push event: 9
  • Pull request event: 4
  • Create event: 3
Last Year
  • Issues event: 5
  • Push event: 9
  • Pull request event: 4
  • Create event: 3

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 129
  • Total Committers: 1
  • Avg Commits per committer: 129.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Dragoș Moldovan-Grünfeld d****d@g****m 129

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 19
  • Total pull requests: 9
  • Average time to close issues: 6 months
  • Average time to close pull requests: 22 minutes
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.05
  • Average comments per pull request: 0.11
  • Merged pull requests: 9
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 2
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • dragosmg (19)
Pull Request Authors
  • dragosmg (11)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 223 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: rocnp

Work with Romanian Personal Numeric Codes PNC / CNP

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 223 Last month
Rankings
Forks count: 28.8%
Dependent packages count: 29.8%
Stargazers count: 35.2%
Dependent repos count: 35.5%
Average: 41.6%
Downloads: 78.5%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • dplyr * imports
  • glue * imports
  • magrittr * imports
  • purrr * imports
  • rlang * imports
  • stringr * imports
  • tibble * imports
  • covr * suggests
  • testthat * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/lint.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v4 composite
  • actions/upload-artifact v4 composite
  • codecov/codecov-action v5 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite