diff --git a/docs/CONDUCT.html b/docs/CONDUCT.html index dbd63263..3ac021fd 100644 --- a/docs/CONDUCT.html +++ b/docs/CONDUCT.html @@ -58,7 +58,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/CONTRIBUTING.html b/docs/CONTRIBUTING.html index 238a30ab..eb73f367 100644 --- a/docs/CONTRIBUTING.html +++ b/docs/CONTRIBUTING.html @@ -58,7 +58,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index 3f7fa6ea..a24058d3 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -58,7 +58,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/articles/getting-started-w-naniar.html b/docs/articles/getting-started-w-naniar.html index 0bb1c87e..48bc1f70 100644 --- a/docs/articles/getting-started-w-naniar.html +++ b/docs/articles/getting-started-w-naniar.html @@ -29,7 +29,7 @@ naniar - 0.3.0 + 0.3.1 @@ -73,7 +73,7 @@

Getting Started with naniar

Nicholas Tierney

-

2018-06-07

+

2018-06-08

Source: vignettes/getting-started-w-naniar.Rmd @@ -109,7 +109,7 @@

  • str()
  • skimr::skim, or
  • -
  • dplyr::glimpse()
  • +
  • dplyr::glimpse()
  • These works really well when you’ve got a small amount of data, but when you have more data, you are generally limited by how much you can read.

    So before you start looking at missing data, you’ll need to look at the data, but what does that even mean?

    @@ -222,7 +222,7 @@

    Tidy Missing Data: The Shadow Matrix

    -

    Representing missing data structure in a tidy format is achieved using the shadow matrix, introduced in Swayne and Buja. The shadow matrix is the same dimension as the data, and consists of binary indicators of missingness of data values, where missing is represented as “NA”, and not missing is represented as “!NA”. Although these may be represented as 1 and 0, respectively. This representation can be seen in the figure below, adding the suffix “_NA" to the variables. This structure can also be extended to allow for additional factor levels to be created. For example 0 indicates data presence, 1 indicates missing values, 2 indicates imputed value, and 3 might indicate a particular type or class of missingness, where reasons for missingness might be known or inferred. The data matrix can also be augmented to include the shadow matrix, which facilitates visualisation of univariate and bivariate missing data visualisations. Another format is to display it in long form, which facilitates heatmap style visualisations. This approach can be very helpful for giving an overview of which variables contain the most missingness. Methods can also be applied to rearrange rows and columns to find clusters, and identify other interesting features of the data that may have previously been hidden or unclear.

    +

    Representing missing data structure in a tidy format is achieved using the shadow matrix, introduced in Swayne and Buja. The shadow matrix is the same dimension as the data, and consists of binary indicators of missingness of data values, where missing is represented as “NA”, and not missing is represented as “!NA”. Although these may be represented as 1 and 0, respectively. This representation can be seen in the figure below, adding the suffix "_NA" to the variables. This structure can also be extended to allow for additional factor levels to be created. For example 0 indicates data presence, 1 indicates missing values, 2 indicates imputed value, and 3 might indicate a particular type or class of missingness, where reasons for missingness might be known or inferred. The data matrix can also be augmented to include the shadow matrix, which facilitates visualisation of univariate and bivariate missing data visualisations. Another format is to display it in long form, which facilitates heatmap style visualisations. This approach can be very helpful for giving an overview of which variables contain the most missingness. Methods can also be applied to rearrange rows and columns to find clusters, and identify other interesting features of the data that may have previously been hidden or unclear.

    Illustration of data structures for facilitating visualisation of missings and not missings

    The shadow functions provide a way to keep track of missing values. The as_shadow function creates a dataframe with the same set of columns, but with the column names added a suffix _NA

    @@ -253,7 +253,7 @@

    ## The following objects are masked from 'package:base':
     ## 
     ##     intersect, setdiff, setequal, union
    -
    glimpse(aq_shadow)
    +
    glimpse(aq_shadow)
    ## Observations: 153
     ## Variables: 12
     ## $ Ozone      <int> 41, 36, 12, 18, NA, 28, 23, 19, 8, NA, 7, 16, 11, 1...
    @@ -272,8 +272,8 @@ 

    bind_shadow() also provides a useful pattern to explore missing values, grouping by the missing/complete of one variable and looking at the mean and other summary values. Below we show the mean, sd, variance, and min and max values of Solar.R for when Ozone is present, and when it is missing.

    ## # A tibble: 2 x 6
    @@ -314,10 +314,10 @@ 

    Numerical summaries of missing values

    -

    naniar also provide numerical summaries for missing data. Two convenient counters of complete values and missings are n_miss and n_complete. These work on both dataframes and vectors, similar to dplyr::n_distinct

    -
    dplyr::n_distinct(airquality)
    +

    naniar also provide numerical summaries for missing data. Two convenient counters of complete values and missings are n_miss and n_complete. These work on both dataframes and vectors, similar to dplyr::n_distinct

    +
    dplyr::n_distinct(airquality)
    ## [1] 153
    -
    dplyr::n_distinct(airquality$Ozone)
    +
    dplyr::n_distinct(airquality$Ozone)
    ## [1] 68
    n_miss(airquality)
    ## [1] 44
    @@ -455,9 +455,9 @@

    ## 9 sensor_name 0 0 2548

    We see that this is in hourly_counts. We can then explore this by month, and filder by the variable being hourly_counts, since it is the only one with missing values.

    pedestrian %>%
    - group_by(month) %>%
    + group_by(month) %>%
      miss_var_summary() %>%
    - filter(variable == "hourly_counts")
    + filter(variable == "hourly_counts")

    ## # A tibble: 12 x 5
     ##    month     variable      n_miss pct_miss n_miss_cumsum
     ##    <ord>     <chr>          <int>    <dbl>         <int>
    diff --git a/docs/articles/index.html b/docs/articles/index.html
    index 236ae1bf..f1ff0139 100644
    --- a/docs/articles/index.html
    +++ b/docs/articles/index.html
    @@ -58,7 +58,7 @@
           
           
             naniar
    -        0.3.0
    +        0.3.1
           
         
     
    diff --git a/docs/articles/naniar-visualisation.html b/docs/articles/naniar-visualisation.html
    index 1182baaf..1b133fce 100644
    --- a/docs/articles/naniar-visualisation.html
    +++ b/docs/articles/naniar-visualisation.html
    @@ -29,7 +29,7 @@
           
           
             naniar
    -        0.3.0
    +        0.3.1
           
         
     
    @@ -73,7 +73,7 @@
           

    Gallery of Missing Data Visualisations

    Nicholas Tierney

    -

    2018-06-07

    +

    2018-06-08

    Source: vignettes/naniar-visualisation.Rmd @@ -204,7 +204,7 @@

    gg_miss_fct()

    -

    This plot shows the number of missings in each column, broken down by a categorical variable from the dataset. It is powered by a dplyr::group_by statement followed by miss_var_summary().

    +

    This plot shows the number of missings in each column, broken down by a categorical variable from the dataset. It is powered by a dplyr::group_by statement followed by miss_var_summary().

    gg_miss_fct(x = riskfactors, fct = marital)

    library(ggplot2)
    @@ -221,7 +221,7 @@ 

    ## ## intersect, setdiff, setequal, union

    ## # A tibble: 231 x 5
     ##    marital variable      n_miss pct_miss n_miss_cumsum
    diff --git a/docs/articles/replace-with-na.html b/docs/articles/replace-with-na.html
    index 4f5d7d0a..3106b325 100644
    --- a/docs/articles/replace-with-na.html
    +++ b/docs/articles/replace-with-na.html
    @@ -29,7 +29,7 @@
           
           
             naniar
    -        0.3.0
    +        0.3.1
           
         
    @@ -73,7 +73,7 @@

    Replacing values with NA

    Nicholas Tierney

    -

    2018-06-07

    +

    2018-06-08

    Source: vignettes/replace-with-na.Rmd @@ -262,7 +262,7 @@

    Notes on alternative ways to handle replacing with NAs

    There are some alternative ways to handle replacing values with NA in the tidyverse. These are ultimately not as expressive as the replace_with_na functions, but they are very useful if you only have one kind of value to replace with a missing, and if you know what the missing values are upon reading in the data. These alternatives are now briefly discussed.

    -

    dplyr::na_if

    +

    dplyr::na_if

    This function allows you to replace exact values - similar to replace_with_na, but for all columns in a data frame. Here is how you would use it in our examples.

    It also cannot handle more complex equations, where you want to refer to values in other columns, or values less than or greater than another value.

    diff --git a/docs/authors.html b/docs/authors.html index 3ae2fe27..2add12e6 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -58,7 +58,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/index.html b/docs/index.html index 2a4c7723..a301fda3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -33,7 +33,7 @@ naniar - 0.3.0 + 0.3.1 @@ -252,7 +252,7 @@

    Numerical summaries for missing data

    -

    naniar provides numerical summaries of missing data, that follow a consistent rule that uses a syntax begining with miss_. Summaries focussing on variables or a single selected variable, start with miss_var_, and summaries for cases (the initial collected row order of the data), they start with miss_case_. All of these functions that return dataframes also work with dplyr’s group_by().

    +

    naniar provides numerical summaries of missing data, that follow a consistent rule that uses a syntax begining with miss_. Summaries focussing on variables or a single selected variable, start with miss_var_, and summaries for cases (the initial collected row order of the data), they start with miss_case_. All of these functions that return dataframes also work with dplyr’s group_by().

    For example, we can look at the number and percent of missings in each case and variable with miss_var_summary(), and miss_case_summary(), which both return output ordered by the number of missing values.

    -

    You could also group_by() to work out the number of missings in each variable across the levels within it.

    +

    You could also group_by() to work out the number of missings in each variable across the levels within it.

    
     library(dplyr)
     #> 
    @@ -292,7 +292,7 @@ 

    #> #> intersect, setdiff, setequal, union airquality %>% - group_by(Month) %>% + group_by(Month) %>% miss_var_summary() #> # A tibble: 25 x 5 #> Month variable n_miss pct_miss n_miss_cumsum diff --git a/docs/issue_template.html b/docs/issue_template.html index 2a4e3038..825d17b9 100644 --- a/docs/issue_template.html +++ b/docs/issue_template.html @@ -58,7 +58,7 @@ naniar - 0.3.0 + 0.3.1

    diff --git a/docs/news/index.html b/docs/news/index.html index d35dded8..51a87fea 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -58,7 +58,7 @@ naniar - 0.3.0 + 0.3.1
    @@ -104,12 +104,37 @@

    Changelog

    Source: NEWS.md +
    +

    +naniar 0.3.1 (2018/06/10) “Strawberry’s Adventure” Unreleased +

    +
    +

    +Minor Change

    +

    This is a patch release that removes tidyselect from the package Imports, as it is unnecessary. Fixes #174

    +
    +
    +
    +

    +naniar 0.3.90000 (2018/06/07) Unreleased +

    +
    +

    +New Features

    +
    +
    +

    +Minor Changes

    +
    +
    diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index d50a4b70..193fe886 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -1,4 +1,4 @@ -pandoc: 2.1.3 +pandoc: 2.2.1 pkgdown: 1.1.0 pkgdown_sha: ~ articles: diff --git a/docs/pull_request_template.html b/docs/pull_request_template.html index 6714f9fc..ccd7e024 100644 --- a/docs/pull_request_template.html +++ b/docs/pull_request_template.html @@ -58,7 +58,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/add_any_miss.html b/docs/reference/add_any_miss.html index 37318bd8..ef20c729 100644 --- a/docs/reference/add_any_miss.html +++ b/docs/reference/add_any_miss.html @@ -67,7 +67,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/add_label_missings.html b/docs/reference/add_label_missings.html index ae11ebce..28671949 100644 --- a/docs/reference/add_label_missings.html +++ b/docs/reference/add_label_missings.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/add_label_shadow.html b/docs/reference/add_label_shadow.html index b64445ec..c744fd5e 100644 --- a/docs/reference/add_label_shadow.html +++ b/docs/reference/add_label_shadow.html @@ -64,7 +64,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/add_miss_cluster.html b/docs/reference/add_miss_cluster.html index 3cb76caa..a2255a4f 100644 --- a/docs/reference/add_miss_cluster.html +++ b/docs/reference/add_miss_cluster.html @@ -65,7 +65,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/add_n_miss.html b/docs/reference/add_n_miss.html index d7304662..9f625b8a 100644 --- a/docs/reference/add_n_miss.html +++ b/docs/reference/add_n_miss.html @@ -63,7 +63,7 @@ naniar - 0.3.0 + 0.3.1 @@ -459,7 +459,7 @@

    Examp #> 150 NA 145 13.2 77 9 27 1 #> 151 14 191 14.3 75 9 28 0 #> 152 18 131 8.0 76 9 29 0 -#> 153 20 223 11.5 68 9 30 0
    airquality %>% add_n_miss(dplyr::contains("o"))
    #> Ozone Solar.R Wind Temp Month Day n_miss_vars +#> 153 20 223 11.5 68 9 30 0
    airquality %>% add_n_miss(dplyr::contains("o"))
    #> Ozone Solar.R Wind Temp Month Day n_miss_vars #> 1 41 190 7.4 67 5 1 0 #> 2 36 118 8.0 72 5 2 0 #> 3 12 149 12.6 74 5 3 0 diff --git a/docs/reference/add_prop_miss.html b/docs/reference/add_prop_miss.html index 19fcb6ea..c48ea20f 100644 --- a/docs/reference/add_prop_miss.html +++ b/docs/reference/add_prop_miss.html @@ -65,7 +65,7 @@ naniar - 0.3.0 + 0.3.1
    diff --git a/docs/reference/add_shadow.html b/docs/reference/add_shadow.html index 96ba1970..b41e69cd 100644 --- a/docs/reference/add_shadow.html +++ b/docs/reference/add_shadow.html @@ -63,7 +63,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/add_shadow_shift.html b/docs/reference/add_shadow_shift.html index 405d6100..01798327 100644 --- a/docs/reference/add_shadow_shift.html +++ b/docs/reference/add_shadow_shift.html @@ -63,7 +63,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/add_span_counter.html b/docs/reference/add_span_counter.html index ffe10442..508fd44c 100644 --- a/docs/reference/add_span_counter.html +++ b/docs/reference/add_span_counter.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/all-is-miss-complete.html b/docs/reference/all-is-miss-complete.html index 8304bd2c..335421de 100644 --- a/docs/reference/all-is-miss-complete.html +++ b/docs/reference/all-is-miss-complete.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/all_row_complete.html b/docs/reference/all_row_complete.html index 10c1e3dc..347e1a7d 100644 --- a/docs/reference/all_row_complete.html +++ b/docs/reference/all_row_complete.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/all_row_miss.html b/docs/reference/all_row_miss.html index 44784fb4..e5890b23 100644 --- a/docs/reference/all_row_miss.html +++ b/docs/reference/all_row_miss.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/any-na.html b/docs/reference/any-na.html index 84e4a054..bea64fc5 100644 --- a/docs/reference/any-na.html +++ b/docs/reference/any-na.html @@ -64,7 +64,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/any_row_miss.html b/docs/reference/any_row_miss.html index ac322a70..9006ef71 100644 --- a/docs/reference/any_row_miss.html +++ b/docs/reference/any_row_miss.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/are_shadow.html b/docs/reference/are_shadow.html index 59eb027a..14574c89 100644 --- a/docs/reference/are_shadow.html +++ b/docs/reference/are_shadow.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/as_shadow.data.frame.html b/docs/reference/as_shadow.data.frame.html index 40e1c642..c3ebfe3d 100644 --- a/docs/reference/as_shadow.data.frame.html +++ b/docs/reference/as_shadow.data.frame.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/as_shadow.html b/docs/reference/as_shadow.html index 15c88fd8..76d853da 100644 --- a/docs/reference/as_shadow.html +++ b/docs/reference/as_shadow.html @@ -66,7 +66,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/as_shadow_upset.html b/docs/reference/as_shadow_upset.html index c1930332..cd33d9ea 100644 --- a/docs/reference/as_shadow_upset.html +++ b/docs/reference/as_shadow_upset.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/bind_shadow.html b/docs/reference/bind_shadow.html index 0193b4d3..08ccf3f8 100644 --- a/docs/reference/bind_shadow.html +++ b/docs/reference/bind_shadow.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/cast_shadow.html b/docs/reference/cast_shadow.html index 13fffbf8..61829b0b 100644 --- a/docs/reference/cast_shadow.html +++ b/docs/reference/cast_shadow.html @@ -68,7 +68,7 @@ naniar - 0.3.0 + 0.3.1 @@ -182,8 +182,12 @@

    Examp #> 9 8 19 !NA !NA #> 10 NA 194 NA !NA #> # ... with 143 more rows
    library(ggplot2) -library(magrittr) -airquality %>% +library(magrittr)
    #> +#> Attaching package: ‘magrittr’
    #> The following object is masked from ‘package:naniar’: +#> +#> set_names
    #> The following objects are masked from ‘package:testthat’: +#> +#> equals, is_less_than, not
    airquality %>% cast_shadow(Ozone,Solar.R) %>% ggplot(aes(x = Ozone, colour = Solar.R_NA)) + diff --git a/docs/reference/cast_shadow_shift.html b/docs/reference/cast_shadow_shift.html index dd5afb85..90357d56 100644 --- a/docs/reference/cast_shadow_shift.html +++ b/docs/reference/cast_shadow_shift.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1
    @@ -170,7 +170,7 @@

    Examp #> 9 8 61 !NA !NA 8 61 #> 10 NA 69 NA !NA -18.5 69 #> # ... with 143 more rows
    -airquality %>% cast_shadow_shift(dplyr::contains("o"))
    #> # A tibble: 153 x 12 +airquality %>% cast_shadow_shift(dplyr::contains("o"))
    #> # A tibble: 153 x 12 #> Ozone Solar.R Month Ozone_NA Solar.R_NA Month_NA Ozone_shift Solar.R_shift #> <int> <int> <int> <fct> <fct> <fct> <dbl> <dbl> #> 1 41 190 5 !NA !NA !NA 41 190 diff --git a/docs/reference/cast_shadow_shift_label.html b/docs/reference/cast_shadow_shift_label.html index 9b463737..9207a2e0 100644 --- a/docs/reference/cast_shadow_shift_label.html +++ b/docs/reference/cast_shadow_shift_label.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1
    diff --git a/docs/reference/common_na_numbers.html b/docs/reference/common_na_numbers.html index 27f104a6..d29e242e 100644 --- a/docs/reference/common_na_numbers.html +++ b/docs/reference/common_na_numbers.html @@ -67,7 +67,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/common_na_strings.html b/docs/reference/common_na_strings.html index adbd21ee..ed1a0201 100644 --- a/docs/reference/common_na_strings.html +++ b/docs/reference/common_na_strings.html @@ -68,7 +68,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/draw_key.html b/docs/reference/draw_key.html index daf71f66..65bb622d 100644 --- a/docs/reference/draw_key.html +++ b/docs/reference/draw_key.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/gather_shadow.html b/docs/reference/gather_shadow.html index a7b3a29c..81039996 100644 --- a/docs/reference/gather_shadow.html +++ b/docs/reference/gather_shadow.html @@ -63,7 +63,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/geom_miss_point.html b/docs/reference/geom_miss_point.html index d23e2beb..b202a462 100644 --- a/docs/reference/geom_miss_point.html +++ b/docs/reference/geom_miss_point.html @@ -64,7 +64,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/gg_miss_case.html b/docs/reference/gg_miss_case.html index 704d46a7..037e2511 100644 --- a/docs/reference/gg_miss_case.html +++ b/docs/reference/gg_miss_case.html @@ -63,7 +63,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/gg_miss_case_cumsum.html b/docs/reference/gg_miss_case_cumsum.html index c165685c..3aeb1b0a 100644 --- a/docs/reference/gg_miss_case_cumsum.html +++ b/docs/reference/gg_miss_case_cumsum.html @@ -63,7 +63,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/gg_miss_fct.html b/docs/reference/gg_miss_fct.html index 2e046666..8e18a59e 100644 --- a/docs/reference/gg_miss_fct.html +++ b/docs/reference/gg_miss_fct.html @@ -63,7 +63,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/gg_miss_span.html b/docs/reference/gg_miss_span.html index a4b177fc..abf88599 100644 --- a/docs/reference/gg_miss_span.html +++ b/docs/reference/gg_miss_span.html @@ -64,7 +64,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/gg_miss_var.html b/docs/reference/gg_miss_var.html index 13aaa205..4ca566f5 100644 --- a/docs/reference/gg_miss_var.html +++ b/docs/reference/gg_miss_var.html @@ -64,7 +64,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/gg_miss_var_cumsum.html b/docs/reference/gg_miss_var_cumsum.html index 4a8c2481..df2d7c9e 100644 --- a/docs/reference/gg_miss_var_cumsum.html +++ b/docs/reference/gg_miss_var_cumsum.html @@ -63,7 +63,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/gg_miss_which.html b/docs/reference/gg_miss_which.html index af5afa99..5753bc21 100644 --- a/docs/reference/gg_miss_which.html +++ b/docs/reference/gg_miss_which.html @@ -63,7 +63,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/group_by_fun.html b/docs/reference/group_by_fun.html index 92f5c5f4..58fa1033 100644 --- a/docs/reference/group_by_fun.html +++ b/docs/reference/group_by_fun.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/impute_below.html b/docs/reference/impute_below.html index 14b83c46..65a34d61 100644 --- a/docs/reference/impute_below.html +++ b/docs/reference/impute_below.html @@ -63,7 +63,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/impute_below_at.html b/docs/reference/impute_below_at.html index c5b1fcb6..c5cee9a8 100644 --- a/docs/reference/impute_below_at.html +++ b/docs/reference/impute_below_at.html @@ -64,7 +64,7 @@ naniar - 0.3.0 + 0.3.1 @@ -155,7 +155,9 @@

    Value

    Examples

    # select variables starting with a particular string. library(dplyr)
    #> -#> Attaching package: ‘dplyr’
    #> The following objects are masked from ‘package:stats’: +#> Attaching package: ‘dplyr’
    #> The following object is masked from ‘package:testthat’: +#> +#> matches
    #> The following objects are masked from ‘package:stats’: #> #> filter, lag
    #> The following objects are masked from ‘package:base’: #> @@ -470,7 +472,7 @@

    Examp #> 152 18.00000 131.00000 8.0 76 9 29 #> 153 20.00000 223.00000 11.5 68 9 30

    #' impute_below_at(airquality, - .vars = vars(Ozone))
    #> Ozone Solar.R Wind Temp Month Day + .vars = vars(Ozone))
    #> Ozone Solar.R Wind Temp Month Day #> 1 41.00000 190 7.4 67 5 1 #> 2 36.00000 118 8.0 72 5 2 #> 3 12.00000 149 12.6 74 5 3 @@ -628,7 +630,7 @@

    Examp library(ggplot2) airquality %>% bind_shadow() %>% - impute_below_at(vars(Ozone, Solar.R)) %>% + impute_below_at(vars(Ozone, Solar.R)) %>% add_label_shadow() %>% ggplot(aes(x = Ozone, y = Solar.R, diff --git a/docs/reference/impute_below_if.html b/docs/reference/impute_below_if.html index 36693409..ca079626 100644 --- a/docs/reference/impute_below_if.html +++ b/docs/reference/impute_below_if.html @@ -63,7 +63,7 @@ naniar - 0.3.0 + 0.3.1

    diff --git a/docs/reference/impute_mean.html b/docs/reference/impute_mean.html index c9aabf15..3bd52e36 100644 --- a/docs/reference/impute_mean.html +++ b/docs/reference/impute_mean.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/index.html b/docs/reference/index.html index e5de8dfb..d225031e 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -58,7 +58,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/is_shadow.html b/docs/reference/is_shadow.html index 9654e2f8..1ae4fd83 100644 --- a/docs/reference/is_shadow.html +++ b/docs/reference/is_shadow.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/label_miss_1d.html b/docs/reference/label_miss_1d.html index ffb50b04..c22e3ac6 100644 --- a/docs/reference/label_miss_1d.html +++ b/docs/reference/label_miss_1d.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/label_miss_2d.html b/docs/reference/label_miss_2d.html index 8eab09c0..493d678e 100644 --- a/docs/reference/label_miss_2d.html +++ b/docs/reference/label_miss_2d.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/label_missings.html b/docs/reference/label_missings.html index 71cc457f..6fd798b9 100644 --- a/docs/reference/label_missings.html +++ b/docs/reference/label_missings.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 @@ -169,7 +169,7 @@

    Examp #> [151] "Not Missing" "Not Missing" "Not Missing"
    library(dplyr) -airquality %>% mutate(is_missing = label_missings(airquality))
    #> Ozone Solar.R Wind Temp Month Day is_missing +airquality %>% mutate(is_missing = label_missings(airquality))
    #> Ozone Solar.R Wind Temp Month Day is_missing #> 1 41 190 7.4 67 5 1 Not Missing #> 2 36 118 8.0 72 5 2 Not Missing #> 3 12 149 12.6 74 5 3 Not Missing diff --git a/docs/reference/label_shadow.html b/docs/reference/label_shadow.html index a2a01eb8..258ee41f 100644 --- a/docs/reference/label_shadow.html +++ b/docs/reference/label_shadow.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1
    diff --git a/docs/reference/label_shadow_matrix.html b/docs/reference/label_shadow_matrix.html index 757b28b4..7d15050a 100644 --- a/docs/reference/label_shadow_matrix.html +++ b/docs/reference/label_shadow_matrix.html @@ -63,7 +63,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/miss-complete-case-pct.html b/docs/reference/miss-complete-case-pct.html index 629441fd..2ae1a959 100644 --- a/docs/reference/miss-complete-case-pct.html +++ b/docs/reference/miss-complete-case-pct.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/miss-complete-case-prop.html b/docs/reference/miss-complete-case-prop.html index 1fb73c13..c9ece135 100644 --- a/docs/reference/miss-complete-case-prop.html +++ b/docs/reference/miss-complete-case-prop.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/miss-complete-var-pct.html b/docs/reference/miss-complete-var-pct.html index 518e2a31..b07422a1 100644 --- a/docs/reference/miss-complete-var-pct.html +++ b/docs/reference/miss-complete-var-pct.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/miss-complete-var-prop.html b/docs/reference/miss-complete-var-prop.html index 63c4bf75..f8d38f57 100644 --- a/docs/reference/miss-complete-var-prop.html +++ b/docs/reference/miss-complete-var-prop.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/miss_case_summary.html b/docs/reference/miss_case_summary.html index 001f49b6..1c7a773d 100644 --- a/docs/reference/miss_case_summary.html +++ b/docs/reference/miss_case_summary.html @@ -63,7 +63,7 @@ naniar - 0.3.0 + 0.3.1 @@ -158,7 +158,7 @@

    Examp # works with group_by from dplyr library(dplyr) airquality %>% - group_by(Month) %>% + group_by(Month) %>% miss_case_summary()
    #> # A tibble: 153 x 5 #> Month case n_miss pct_miss n_miss_cumsum #> <int> <int> <int> <dbl> <int> diff --git a/docs/reference/miss_case_table.html b/docs/reference/miss_case_table.html index 16babb59..1da1203e 100644 --- a/docs/reference/miss_case_table.html +++ b/docs/reference/miss_case_table.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1
    @@ -145,7 +145,7 @@

    Examp #> 2 1 40 26.1 #> 3 2 2 1.31
    library(dplyr) airquality %>% - group_by(Month) %>% + group_by(Month) %>% miss_case_table()
    #> # A tibble: 11 x 4 #> Month n_miss_in_case n_cases pct_miss #> <int> <int> <int> <dbl> diff --git a/docs/reference/miss_prop_summary.html b/docs/reference/miss_prop_summary.html index 7b262cbb..310daaae 100644 --- a/docs/reference/miss_prop_summary.html +++ b/docs/reference/miss_prop_summary.html @@ -64,7 +64,7 @@ naniar - 0.3.0 + 0.3.1
    @@ -146,7 +146,7 @@

    Examp #> df var case #> <dbl> <dbl> <dbl> #> 1 0.0479 0.333 0.275
    library(dplyr) -airquality %>% group_by(Month) %>% miss_prop_summary()
    #> # A tibble: 5 x 4 +airquality %>% group_by(Month) %>% miss_prop_summary()
    #> # A tibble: 5 x 4 #> Month df var case #> <int> <dbl> <dbl> <dbl> #> 1 5 0.0581 0.4 0.226 diff --git a/docs/reference/miss_scan_count.html b/docs/reference/miss_scan_count.html index c9123453..98e95e05 100644 --- a/docs/reference/miss_scan_count.html +++ b/docs/reference/miss_scan_count.html @@ -66,7 +66,7 @@ naniar - 0.3.0 + 0.3.1
    diff --git a/docs/reference/miss_summary.html b/docs/reference/miss_summary.html index d4b0c5e4..c2ec7e1d 100644 --- a/docs/reference/miss_summary.html +++ b/docs/reference/miss_summary.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 @@ -167,7 +167,7 @@

    Examp #>
    # etc, etc, etc. library(dplyr) -s_miss_group <- group_by(airquality, Month) %>% miss_summary() +s_miss_group <- group_by(airquality, Month) %>% miss_summary() s_miss_group$miss_df_prop
    #> [1] 0.04793028
    s_miss_group$miss_case_table
    #> [[1]] #> # A tibble: 11 x 4 #> Month n_miss_in_case n_cases pct_miss diff --git a/docs/reference/miss_var_run.html b/docs/reference/miss_var_run.html index e9711882..98ea0543 100644 --- a/docs/reference/miss_var_run.html +++ b/docs/reference/miss_var_run.html @@ -64,7 +64,7 @@ naniar - 0.3.0 + 0.3.1
    @@ -166,7 +166,7 @@

    Examp # find the number of runs missing/complete for each month pedestrian %>% - group_by(month) %>% + group_by(month) %>% miss_var_run(hourly_counts)
    #> # A tibble: 51 x 3 #> month run_length is_na #> <ord> <int> <chr> @@ -185,8 +185,8 @@

    Examp # explore the number of missings in a given run miss_var_run(pedestrian, hourly_counts) %>% - filter(is_na == "missing") %>% - count(run_length) %>% + filter(is_na == "missing") %>% + count(run_length) %>% ggplot(aes(x = run_length, y = n)) + geom_col()

    @@ -197,7 +197,7 @@

    Examp geom_boxplot()

    # using group_by pedestrian %>% - group_by(month) %>% + group_by(month) %>% miss_var_run(hourly_counts)
    #> # A tibble: 51 x 3 #> month run_length is_na #> <ord> <int> <chr> diff --git a/docs/reference/miss_var_span.html b/docs/reference/miss_var_span.html index 21a3e4dd..72a2f668 100644 --- a/docs/reference/miss_var_span.html +++ b/docs/reference/miss_var_span.html @@ -65,7 +65,7 @@ naniar - 0.3.0 + 0.3.1
    @@ -172,7 +172,7 @@

    Examp #> # ... with 215 more rows
    library(dplyr) pedestrian %>% - group_by(month) %>% + group_by(month) %>% miss_var_span(var = hourly_counts, span_every = 168)
    #> # A tibble: 230 x 6 #> month span_counter n_miss n_complete prop_miss prop_complete diff --git a/docs/reference/miss_var_summary.html b/docs/reference/miss_var_summary.html index e5b731e4..9f1de32a 100644 --- a/docs/reference/miss_var_summary.html +++ b/docs/reference/miss_var_summary.html @@ -63,7 +63,7 @@ naniar - 0.3.0 + 0.3.1
    @@ -177,7 +177,7 @@

    Examp # works with group_by from dplyr library(dplyr) airquality %>% - group_by(Month) %>% + group_by(Month) %>% miss_var_summary()
    #> # A tibble: 25 x 5 #> Month variable n_miss pct_miss n_miss_cumsum #> <int> <chr> <int> <dbl> <int> diff --git a/docs/reference/miss_var_table.html b/docs/reference/miss_var_table.html index 333d9a44..62e678ad 100644 --- a/docs/reference/miss_var_table.html +++ b/docs/reference/miss_var_table.html @@ -63,7 +63,7 @@ naniar - 0.3.0 + 0.3.1
    @@ -148,7 +148,7 @@

    Examp #> 3 37 1 16.7
    library(dplyr) airquality %>% - group_by(Month) %>% + group_by(Month) %>% miss_var_table()
    #> # A tibble: 12 x 4 #> Month n_miss_in_var n_vars pct_miss #> <int> <int> <int> <dbl> diff --git a/docs/reference/miss_var_which.html b/docs/reference/miss_var_which.html index d008ebdb..40576474 100644 --- a/docs/reference/miss_var_which.html +++ b/docs/reference/miss_var_which.html @@ -64,7 +64,7 @@ naniar - 0.3.0 + 0.3.1
    diff --git a/docs/reference/n-var-case-complete.html b/docs/reference/n-var-case-complete.html index 4deb2a88..02469d94 100644 --- a/docs/reference/n-var-case-complete.html +++ b/docs/reference/n-var-case-complete.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/n-var-case-miss.html b/docs/reference/n-var-case-miss.html index 69902a4a..f38af0e1 100644 --- a/docs/reference/n-var-case-miss.html +++ b/docs/reference/n-var-case-miss.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/n_complete.html b/docs/reference/n_complete.html index 06da0611..0bf714bb 100644 --- a/docs/reference/n_complete.html +++ b/docs/reference/n_complete.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/n_complete_row.html b/docs/reference/n_complete_row.html index 057317ab..9b934d58 100644 --- a/docs/reference/n_complete_row.html +++ b/docs/reference/n_complete_row.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/n_miss.html b/docs/reference/n_miss.html index ff872499..a0b86031 100644 --- a/docs/reference/n_miss.html +++ b/docs/reference/n_miss.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/n_miss_row.html b/docs/reference/n_miss_row.html index 73d6deea..ab269b78 100644 --- a/docs/reference/n_miss_row.html +++ b/docs/reference/n_miss_row.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/naniar-ggproto.html b/docs/reference/naniar-ggproto.html index a486b2ce..b1d2abb2 100644 --- a/docs/reference/naniar-ggproto.html +++ b/docs/reference/naniar-ggproto.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/naniar.html b/docs/reference/naniar.html index aeaa926f..2ed6cf75 100644 --- a/docs/reference/naniar.html +++ b/docs/reference/naniar.html @@ -63,7 +63,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/oceanbuoys.html b/docs/reference/oceanbuoys.html index 9636bf6d..41bd0ba8 100644 --- a/docs/reference/oceanbuoys.html +++ b/docs/reference/oceanbuoys.html @@ -64,7 +64,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/pct_complete.html b/docs/reference/pct_complete.html index b4ddc47a..79916bc4 100644 --- a/docs/reference/pct_complete.html +++ b/docs/reference/pct_complete.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/pct_miss.html b/docs/reference/pct_miss.html index 2b0b4c51..45c148de 100644 --- a/docs/reference/pct_miss.html +++ b/docs/reference/pct_miss.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/pedestrian.html b/docs/reference/pedestrian.html index 6609ea97..14962e3c 100644 --- a/docs/reference/pedestrian.html +++ b/docs/reference/pedestrian.html @@ -65,7 +65,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/prop_complete.html b/docs/reference/prop_complete.html index d097a201..ebc12317 100644 --- a/docs/reference/prop_complete.html +++ b/docs/reference/prop_complete.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/prop_complete_row.html b/docs/reference/prop_complete_row.html index 8eb8e723..58f6566c 100644 --- a/docs/reference/prop_complete_row.html +++ b/docs/reference/prop_complete_row.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/prop_miss.html b/docs/reference/prop_miss.html index 683e7133..059dc366 100644 --- a/docs/reference/prop_miss.html +++ b/docs/reference/prop_miss.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/prop_miss_row.html b/docs/reference/prop_miss_row.html index 689b609c..dc47a203 100644 --- a/docs/reference/prop_miss_row.html +++ b/docs/reference/prop_miss_row.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/reexports.html b/docs/reference/reexports.html index af259a16..83f10ede 100644 --- a/docs/reference/reexports.html +++ b/docs/reference/reexports.html @@ -69,7 +69,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/replace_to_na.html b/docs/reference/replace_to_na.html index 2b1a3aa2..c9f3268f 100644 --- a/docs/reference/replace_to_na.html +++ b/docs/reference/replace_to_na.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/replace_with_na.html b/docs/reference/replace_with_na.html index 8da68383..b552cdd0 100644 --- a/docs/reference/replace_with_na.html +++ b/docs/reference/replace_with_na.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/replace_with_na_all.html b/docs/reference/replace_with_na_all.html index 371b0bdd..f35e955a 100644 --- a/docs/reference/replace_with_na_all.html +++ b/docs/reference/replace_with_na_all.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/replace_with_na_at.html b/docs/reference/replace_with_na_at.html index 46e3ef0b..c2482077 100644 --- a/docs/reference/replace_with_na_at.html +++ b/docs/reference/replace_with_na_at.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/replace_with_na_if.html b/docs/reference/replace_with_na_if.html index b7f65eac..0fb6a7f0 100644 --- a/docs/reference/replace_with_na_if.html +++ b/docs/reference/replace_with_na_if.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/riskfactors.html b/docs/reference/riskfactors.html index da64bf11..2fe2c400 100644 --- a/docs/reference/riskfactors.html +++ b/docs/reference/riskfactors.html @@ -65,7 +65,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/scoped-impute_mean.html b/docs/reference/scoped-impute_mean.html index ff30bf20..5459d655 100644 --- a/docs/reference/scoped-impute_mean.html +++ b/docs/reference/scoped-impute_mean.html @@ -65,7 +65,7 @@ naniar - 0.3.0 + 0.3.1 @@ -463,7 +463,7 @@

    Examp #> 152 18.00000 131.0000 8.0 76 9 29 #> 153 20.00000 223.0000 11.5 68 9 30
    impute_mean_at(airquality, - .vars = vars(Ozone))
    #> Ozone Solar.R Wind Temp Month Day + .vars = vars(Ozone))
    #> Ozone Solar.R Wind Temp Month Day #> 1 41.00000 190 7.4 67 5 1 #> 2 36.00000 118 8.0 72 5 2 #> 3 12.00000 149 12.6 74 5 3 diff --git a/docs/reference/shadow_shift.html b/docs/reference/shadow_shift.html index 677f566a..9b1d536f 100644 --- a/docs/reference/shadow_shift.html +++ b/docs/reference/shadow_shift.html @@ -65,7 +65,7 @@ naniar - 0.3.0 + 0.3.1
    @@ -174,7 +174,7 @@

    Examp #> [141] 13.00000 24.00000 16.00000 13.00000 23.00000 36.00000 7.00000 #> [148] 14.00000 30.00000 -14.83089 14.00000 18.00000 20.00000
    library(dplyr) airquality %>% - mutate(Ozone_shift = shadow_shift(Ozone))
    #> Ozone Solar.R Wind Temp Month Day Ozone_shift + mutate(Ozone_shift = shadow_shift(Ozone))
    #> Ozone Solar.R Wind Temp Month Day Ozone_shift #> 1 41 190 7.4 67 5 1 41.00000 #> 2 36 118 8.0 72 5 2 36.00000 #> 3 12 149 12.6 74 5 3 12.00000 diff --git a/docs/reference/shadow_shift.numeric.html b/docs/reference/shadow_shift.numeric.html index edd12d06..14403c42 100644 --- a/docs/reference/shadow_shift.numeric.html +++ b/docs/reference/shadow_shift.numeric.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1
    diff --git a/docs/reference/stat_miss_point.html b/docs/reference/stat_miss_point.html index 5cce5241..ae7ff6d2 100644 --- a/docs/reference/stat_miss_point.html +++ b/docs/reference/stat_miss_point.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/test_if_dataframe.html b/docs/reference/test_if_dataframe.html index ac6ef37b..f18115ed 100644 --- a/docs/reference/test_if_dataframe.html +++ b/docs/reference/test_if_dataframe.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/test_if_missing.html b/docs/reference/test_if_missing.html index 30eb366f..945c73b6 100644 --- a/docs/reference/test_if_missing.html +++ b/docs/reference/test_if_missing.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/test_if_null.html b/docs/reference/test_if_null.html index c6bfde0d..6f687ebd 100644 --- a/docs/reference/test_if_null.html +++ b/docs/reference/test_if_null.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/unbinders.html b/docs/reference/unbinders.html index 69e0f730..84f3363f 100644 --- a/docs/reference/unbinders.html +++ b/docs/reference/unbinders.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/where_na.html b/docs/reference/where_na.html index 498e522e..638a3f72 100644 --- a/docs/reference/where_na.html +++ b/docs/reference/where_na.html @@ -62,7 +62,7 @@ naniar - 0.3.0 + 0.3.1 diff --git a/docs/reference/which_na.html b/docs/reference/which_na.html index 2cf49503..0492916a 100644 --- a/docs/reference/which_na.html +++ b/docs/reference/which_na.html @@ -61,7 +61,7 @@ naniar - 0.3.0 + 0.3.1