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
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
[](https://github.com/dragosmg/rocnp/actions/workflows/R-CMD-check.yaml)
[](https://app.codecov.io/gh/dragosmg/rocnp)
[](https://lifecycle.r-lib.org/articles/stages.html#stable)
[](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
- Twitter: dragosmg
- Repositories: 5
- Profile: https://github.com/dragosmg
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
Top Committers
| Name | 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
- Homepage: https://github.com/dragosmg/rocnp
- Documentation: http://cran.r-project.org/web/packages/rocnp/rocnp.pdf
- License: MIT + file LICENSE
-
Latest release: 0.1.0
published over 4 years ago
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