Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Prepare for next release
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrerebeau committed Nov 7, 2024
1 parent b043fba commit 09d4868
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 54 deletions.
13 changes: 5 additions & 8 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ message: 'To cite package "arkhe" in publications use:'
type: software
license: GPL-3.0-or-later
title: 'arkhe: Tools for Cleaning Rectangular Data'
version: 1.7.0
version: 1.8.0
doi: 10.5281/zenodo.3526659
identifiers:
- description: The concept DOI.
Expand Down Expand Up @@ -62,6 +62,9 @@ identifiers:
- description: The versioned DOI for version 1.7.0.
type: doi
value: 10.5281/zenodo.13121710
- description: The CRAN DOI
type: doi
value: 10.32614/cran.package.arkhe
abstract: A dependency-free collection of simple functions for cleaning rectangular
data. This package allows to detect, count and replace values or discard rows/columns
using a predicate function. In addition, it provides tools to check conditions and
Expand All @@ -71,7 +74,6 @@ authors:
given-names: Nicolas
email: nicolas.frerebeau@u-bordeaux-montaigne.fr
orcid: https://orcid.org/0000-0001-5759-4944
affiliation: Université Bordeaux Montaigne
preferred-citation:
type: manual
title: 'arkhe: Tools for Cleaning Rectangular Data'
Expand All @@ -80,12 +82,11 @@ preferred-citation:
given-names: Nicolas
email: nicolas.frerebeau@u-bordeaux-montaigne.fr
orcid: https://orcid.org/0000-0001-5759-4944
affiliation: Université Bordeaux Montaigne
year: '2024'
institution:
name: Université Bordeaux Montaigne
address: Pessac, France
notes: R package version 1.7.0
notes: R package version 1.8.0
url: https://packages.tesselle.org/arkhe/
doi: 10.5281/zenodo.3526659
repository: https://CRAN.R-project.org/package=arkhe
Expand All @@ -96,7 +97,6 @@ contact:
given-names: Nicolas
email: nicolas.frerebeau@u-bordeaux-montaigne.fr
orcid: https://orcid.org/0000-0001-5759-4944
affiliation: Université Bordeaux Montaigne
keywords:
- data cleaning
- statistics
Expand All @@ -123,7 +123,6 @@ references:
name: R Foundation for Statistical Computing
address: Vienna, Austria
year: '2024'
doi: 10.32614/CRAN.package.methods
- type: software
title: stats
abstract: 'R: A Language and Environment for Statistical Computing'
Expand All @@ -134,7 +133,6 @@ references:
name: R Foundation for Statistical Computing
address: Vienna, Austria
year: '2024'
doi: 10.32614/CRAN.package.stats
- type: software
title: utils
abstract: 'R: A Language and Environment for Statistical Computing'
Expand All @@ -145,7 +143,6 @@ references:
name: R Foundation for Statistical Computing
address: Vienna, Austria
year: '2024'
doi: 10.32614/CRAN.package.utils
- type: software
title: tinytest
abstract: 'tinytest: Lightweight and Feature Complete Unit Testing Framework'
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Package: arkhe
Title: Tools for Cleaning Rectangular Data
Version: 1.7.0.9000
Version: 1.8.0
Authors@R: c(
person("Nicolas", "Frerebeau", , "nicolas.frerebeau@u-bordeaux-montaigne.fr", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-5759-4944", affiliation = "Université Bordeaux Montaigne")),
comment = c(ORCID = "0000-0001-5759-4944")),
person("Brice", "Lebrun", , "brice.lebrun@u-bordeaux-montaigne.fr", role = "ctb",
comment = c(ORCID = "0000-0001-7503-8685", "Logo designer")),
person("Université Bordeaux Montaigne", role = "fnd"),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# arkhe 1.7.0.9000
# arkhe 1.8.0
## New classes and methods
* Add `append_column()` to add a named vector as a column in a `data.frame`.
* Add `assert_nrow()` and `assert_ncol()` to check the number of rows/columns.
Expand Down
2 changes: 1 addition & 1 deletion R/arkhe-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#' \tabular{ll}{
#' **Package:** \tab arkhe \cr
#' **Type:** \tab Package \cr
#' **Version:** \tab 1.7.0 \cr
#' **Version:** \tab 1.8.0 \cr
#' **License:** \tab GPL-3 \cr
#' **Zenodo:** \tab \doi{10.5281/zenodo.3526659} \cr
#' }
Expand Down
3 changes: 3 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,19 @@ X
## Count missing values in rows
count(X, f = is.na, margin = 1)
## Count non-missing values in columns
count(X, f = is.na, margin = 2, negate = TRUE)
## Find row with NA
detect(X, f = is.na, margin = 1)
## Find column without any NA
detect(X, f = is.na, margin = 2, negate = TRUE, all = TRUE)
## Remove row with any NA
discard(X, f = is.na, margin = 1, all = FALSE)
## Remove column with any NA
discard(X, f = is.na, margin = 2, all = FALSE)
Expand Down
47 changes: 25 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ To cite arkhe in publications use:
Frerebeau N (2024). *arkhe: Tools for Cleaning Rectangular Data*.
Université Bordeaux Montaigne, Pessac, France.
<doi:10.5281/zenodo.3526659> <https://doi.org/10.5281/zenodo.3526659>, R
package version 1.7.0.9000, <https://packages.tesselle.org/arkhe/>.
package version 1.8.0, <https://packages.tesselle.org/arkhe/>.

This package is a part of the tesselle project
<https://www.tesselle.org>.
Expand Down Expand Up @@ -84,48 +84,51 @@ k <- sample(1:25, 3, FALSE)
X[k] <- NA
X
#> [,1] [,2] [,3] [,4] [,5]
#> [1,] 1 7 10 2 6
#> [2,] 9 7 7 3 5
#> [3,] 6 NA 8 10 5
#> [4,] 1 10 8 2 NA
#> [5,] NA 1 4 9 8
#> [1,] 10 10 NA 7 7
#> [2,] 6 4 7 10 3
#> [3,] 7 10 5 9 6
#> [4,] 7 10 4 NA 2
#> [5,] NA 9 6 9 7

## Count missing values in rows
count(X, f = is.na, margin = 1)
#> [1] 0 0 1 1 1
#> [1] 1 0 0 1 1

## Count non-missing values in columns
count(X, f = is.na, margin = 2, negate = TRUE)
#> [1] 4 4 5 5 4
#> [1] 4 5 4 4 5

## Find row with NA
detect(X, f = is.na, margin = 1)
#> [1] FALSE FALSE TRUE TRUE TRUE
#> [1] TRUE FALSE FALSE TRUE TRUE

## Find column without any NA
detect(X, f = is.na, margin = 2, negate = TRUE, all = TRUE)
#> [1] FALSE FALSE TRUE TRUE FALSE
#> [1] FALSE TRUE FALSE FALSE TRUE

## Remove row with any NA
discard(X, f = is.na, margin = 1, all = FALSE)
#> [,1] [,2] [,3] [,4] [,5]
#> [1,] 1 7 10 2 6
#> [2,] 9 7 7 3 5
#> [1,] 6 4 7 10 3
#> [2,] 7 10 5 9 6

## Remove column with any NA
discard(X, f = is.na, margin = 2, all = FALSE)
#> [,1] [,2]
#> [1,] 10 2
#> [2,] 7 3
#> [3,] 8 10
#> [4,] 8 2
#> [5,] 4 9
#> [1,] 10 7
#> [2,] 4 3
#> [3,] 10 6
#> [4,] 10 2
#> [5,] 9 7

## Replace NA with zeros
replace_NA(X, value = 0)
#> [,1] [,2] [,3] [,4] [,5]
#> [1,] 1 7 10 2 6
#> [2,] 9 7 7 3 5
#> [3,] 6 0 8 10 5
#> [4,] 1 10 8 2 0
#> [5,] 0 1 4 9 8
#> [1,] 10 10 0 7 7
#> [2,] 6 4 7 10 3
#> [3,] 7 10 5 9 6
#> [4,] 7 10 4 0 2
#> [5,] 0 9 6 9 7
```

## Contributing
Expand Down
6 changes: 3 additions & 3 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"codeRepository": "https://github.com/tesselle/arkhe",
"issueTracker": "https://github.com/tesselle/arkhe/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "1.7.0.9000",
"version": "1.8.0",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down Expand Up @@ -96,7 +96,7 @@
},
"SystemRequirements": null
},
"fileSize": "293.833KB",
"fileSize": "328.602KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand All @@ -111,7 +111,7 @@
"name": "{arkhe: Tools for Cleaning Rectangular Data}",
"identifier": "10.5281/zenodo.3526659",
"url": "https://packages.tesselle.org/arkhe/",
"description": "R package version 1.7.0.9000",
"description": "R package version 1.8.0",
"@id": "https://doi.org/10.5281/zenodo.3526659",
"sameAs": "https://doi.org/10.5281/zenodo.3526659"
}
Expand Down
2 changes: 1 addition & 1 deletion man/arkhe-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 15 additions & 16 deletions revdep/README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
# Platform

|field |value |
|:--------|:------------------------------------------------------------------------------------|
|version |R version 4.4.1 (2024-06-14) |
|os |Ubuntu 22.04.4 LTS |
|system |x86_64, linux-gnu |
|ui |RStudio |
|language |(EN) |
|collate |fr_FR.UTF-8 |
|ctype |fr_FR.UTF-8 |
|tz |Europe/Paris |
|date |2024-07-29 |
|rstudio |2024.04.2+764 Chocolate Cosmos (desktop) |
|pandoc |3.1.11 @ /usr/lib/rstudio/resources/app/bin/quarto/bin/tools/x86_64/ (via rmarkdown) |
|field |value |
|:--------|:----------------------------|
|version |R version 4.4.1 (2024-06-14) |
|os |Ubuntu 22.04.5 LTS |
|system |x86_64, linux-gnu |
|ui |X11 |
|language |(EN) |
|collate |fr_FR.UTF-8 |
|ctype |fr_FR.UTF-8 |
|tz |Europe/Paris |
|date |2024-11-07 |
|pandoc |NA |

# Dependencies

|package |old |new |Δ |
|:-------|:-----|:-----|:--|
|arkhe |1.6.0 |1.7.0 |* |
|package |old |new |Δ |
|:-------|:-----|:----------|:--|
|arkhe |1.7.0 |1.7.0.9000 |* |

# Revdeps

0 comments on commit 09d4868

Please sign in to comment.