diff --git a/CITATION.cff b/CITATION.cff index a46b0cc..5f56347 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -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. @@ -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 @@ -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' @@ -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 @@ -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 @@ -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' @@ -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' @@ -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' diff --git a/DESCRIPTION b/DESCRIPTION index 34fec60..7df2b5d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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"), diff --git a/NEWS.md b/NEWS.md index 99ef9b1..78e33ca 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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. diff --git a/R/arkhe-package.R b/R/arkhe-package.R index f012c27..d564ccd 100644 --- a/R/arkhe-package.R +++ b/R/arkhe-package.R @@ -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 #' } diff --git a/README.Rmd b/README.Rmd index f49e694..e7137b7 100644 --- a/README.Rmd +++ b/README.Rmd @@ -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) diff --git a/README.md b/README.md index 94ddd27..239210b 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ To cite arkhe in publications use: Frerebeau N (2024). *arkhe: Tools for Cleaning Rectangular Data*. Université Bordeaux Montaigne, Pessac, France. , R -package version 1.7.0.9000, . +package version 1.8.0, . This package is a part of the tesselle project . @@ -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 diff --git a/codemeta.json b/codemeta.json index ce966e0..2b172ee 100644 --- a/codemeta.json +++ b/codemeta.json @@ -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", @@ -96,7 +96,7 @@ }, "SystemRequirements": null }, - "fileSize": "293.833KB", + "fileSize": "328.602KB", "citation": [ { "@type": "SoftwareSourceCode", @@ -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" } diff --git a/man/arkhe-package.Rd b/man/arkhe-package.Rd index ff85609..835be51 100644 --- a/man/arkhe-package.Rd +++ b/man/arkhe-package.Rd @@ -14,7 +14,7 @@ A dependency-free collection of simple functions for cleaning rectangular data. \tabular{ll}{ \strong{Package:} \tab arkhe \cr \strong{Type:} \tab Package \cr -\strong{Version:} \tab 1.7.0 \cr +\strong{Version:} \tab 1.8.0 \cr \strong{License:} \tab GPL-3 \cr \strong{Zenodo:} \tab \doi{10.5281/zenodo.3526659} \cr } diff --git a/revdep/README.md b/revdep/README.md index 5023f77..1b170b3 100644 --- a/revdep/README.md +++ b/revdep/README.md @@ -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