Skip to content

Commit

Permalink
styler, update dic
Browse files Browse the repository at this point in the history
  • Loading branch information
rempsyc committed Nov 11, 2024
1 parent ab9f006 commit 218b7f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
5 changes: 1 addition & 4 deletions R/describe_missing.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@
#'
#' # One can list the scale names directly:
#' describe_missing(df, scales = c("ID", "open", "extrovert", "agreeable"))



describe_missing <- function(data, vars = NULL, scales = NULL) {
classes <- lapply(data, class)
if (missing(vars) & missing(scales)) {

Check warning on line 70 in R/describe_missing.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=R/describe_missing.R,line=70,col=21,[vector_logic_linter] Use `&&` in conditional expressions.

Check warning on line 70 in R/describe_missing.R

View workflow job for this annotation

GitHub Actions / lint / lint

file=R/describe_missing.R,line=70,col=21,[vector_logic_linter] Use `&&` in conditional expressions.
Expand Down Expand Up @@ -104,7 +101,7 @@ describe_missing <- function(data, vars = NULL, scales = NULL) {
na_max <- max(rowSums(is.na(data)))
na_max_percent <- round(na_max / items * 100, 2)
all_na <- sum(apply(data, 1, function(x) all(is.na(x))))

data.frame(
var = var,
items = items,
Expand Down
14 changes: 5 additions & 9 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ CMD
Carle
Catran
Crosstables
Dhaliwal
Disaggregating
DOI
De
Dom
Dhaliwal
Disaggregating
EFC
Enders
EUROFAMCARE
Enders
Fairbrother
GLMM
Gelman
Expand Down Expand Up @@ -54,7 +53,6 @@ Winsorizing
al
behaviour
behaviours
bmwiernik
codebook
codebooks
coercible
Expand All @@ -77,7 +75,6 @@ joss
labelled
labelling
leptokurtic
lifecycle
lm
lme
meaned
Expand All @@ -88,7 +85,6 @@ modelling
nd
panelr
partialization
patilindrajeets
platykurtic
poorman
pre
Expand All @@ -102,7 +98,6 @@ recodes
recoding
recodings
relevel
rempsyc
reproducibility
rescale
rescaled
Expand All @@ -111,7 +106,8 @@ rio
rowid
sd
stackexchange
strengejacke
subscale
subscales
tailedness
th
tibble
Expand Down
1 change: 1 addition & 0 deletions pkgdown/_pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ reference:
- data_tabulate
- data_peek
- data_seek
- describe_missing
- means_by_group
- contains("distribution")
- kurtosis
Expand Down

0 comments on commit 218b7f4

Please sign in to comment.