From 841b4fb215807cd38a8fafc0a2ec9b8df92af986 Mon Sep 17 00:00:00 2001 From: alastair rushworth Date: Tue, 5 Nov 2019 19:37:25 +0000 Subject: [PATCH] v0.0.7 --- .Rbuildignore | 2 ++ DESCRIPTION | 2 +- NAMESPACE | 1 + NEWS.Rmd | 6 +++--- NEWS.md | 6 +++--- R/plot_grouped.R | 3 ++- R/zzz.R | 3 ++- 7 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.Rbuildignore b/.Rbuildignore index 69f6670..4fd09fa 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,6 +1,7 @@ ^tests$ ^docs$ ^vignettes/pkgdown$ +^pkgdown$ ^inst$ ^checks\.R$ ^big_tests\.R$ @@ -17,3 +18,4 @@ ^README.html$ ^\.Rout$ ^\.RData +^new_cor\.R$ diff --git a/DESCRIPTION b/DESCRIPTION index 0fbb20c..a9ab526 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: inspectdf Title: Inspection, Comparison and Visualisation of Data Frames -Version: 0.0.7.9000 +Version: 0.0.7 Authors@R: c( person("Alastair", "Rushworth", email = "alastairmrushworth@gmail.com", role = c("aut", "cre")), person("David", "Wilkins", email = "david@wilkox.org", role = "ctb") diff --git a/NAMESPACE b/NAMESPACE index b93b852..421293e 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -88,6 +88,7 @@ importFrom(tibble,tibble) importFrom(tidyr,gather) importFrom(tidyr,nest) importFrom(tidyr,replace_na) +importFrom(tidyr,unite) importFrom(tidyr,unnest) importFrom(utils,object.size) importFrom(utils,tail) diff --git a/NEWS.Rmd b/NEWS.Rmd index 40cd0f4..20d5c7f 100644 --- a/NEWS.Rmd +++ b/NEWS.Rmd @@ -6,12 +6,12 @@ output: github_document knitr::opts_chunk$set(echo = TRUE) ``` -# `inspectdf` 0.0.7.9000 +# `inspectdf` 0.0.7 - Added `bytes` column to `inspect_mem()` output, for downstream numeric comparison and consistency with `inspectpd`. -- Added `pcnt_nna` column to `inspect_cor()` output containin the percentage of pairwise complete observations used calculated correlations. Thanks to Theo Broekman for the suggestion. +- Added `pcnt_nna` column to `inspect_cor()` output containing the percentage of pairwise complete observations used calculated correlations. Thanks to Theo Broekman for the suggestion. - Fixed bug causing order of grouping variable in grouped `inspect_` statements to be incorrect. Thanks to the report from Theo Broekman. -- Removed erroneous print statement form `inspect_num()`. +- Removed erroneous print statement from `inspect_num()`. # `inspectdf` 0.0.6 diff --git a/NEWS.md b/NEWS.md index ad003d8..299e0d6 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,14 +1,14 @@ -# `inspectdf` 0.0.7.9000 +# `inspectdf` 0.0.7 - Added `bytes` column to `inspect_mem()` output, for downstream numeric comparison and consistency with `inspectpd`. - - Added `pcnt_nna` column to `inspect_cor()` output containin the + - Added `pcnt_nna` column to `inspect_cor()` output containing the percentage of pairwise complete observations used calculated correlations. Thanks to Theo Broekman for the suggestion. - Fixed bug causing order of grouping variable in grouped `inspect_` statements to be incorrect. Thanks to the report from Theo Broekman. - - Removed erroneous print statement form `inspect_num()`. + - Removed erroneous print statement from `inspect_num()`. # `inspectdf` 0.0.6 diff --git a/R/plot_grouped.R b/R/plot_grouped.R index a14adca..2cd3114 100644 --- a/R/plot_grouped.R +++ b/R/plot_grouped.R @@ -1,7 +1,8 @@ +#' @importFrom tidyr unite + plot_grouped <- function(df, value, series, group, plot_type, col_palette, text_labels, ylab){ - z <- 1 + 1 # get group names grp_attr <- attr(df, 'groups') ngroups <- ncol(grp_attr) - 1 diff --git a/R/zzz.R b/R/zzz.R index 0315efa..a972098 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -15,6 +15,7 @@ "cnt", "col_names", "white_labs", "black_labs", "cls", "alpha", "jsd", "significant", "bar_width", "corr_1", "corr_2", "data_frame_n", "col_vec", "size", - "df_cat_fact", "ymax", "se", "col_name1", "prop_z", "data")) + "df_cat_fact", "ymax", "se", "col_name1", "prop_z", + "data", "pcnt_nna", "bytes")) invisible() } \ No newline at end of file