Skip to content

Commit

Permalink
drop commented browsers, protect from old version of data.table
Browse files Browse the repository at this point in the history
  • Loading branch information
bcjaeger committed Feb 9, 2024
1 parent 360e42a commit 7e9484e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions R/nhanes_design_summarize.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ nhanes_design_summarize <- function(x,

use_statby <- !is.null(x$by_variables)

# browser()

smry_output <- purrr::map_dfr(

.x = x$stats[x$stats %in% outcome_stats],
Expand Down
2 changes: 0 additions & 2 deletions R/nhanes_design_viz.R
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ nhanes_design_viz <- function(x,

}

# browser()

if(!group_used){
group <- 'fake_._group'
data[[group]] <- 1
Expand Down
2 changes: 1 addition & 1 deletion R/nhanes_summarize.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ nhanes_summarize <- function(data,

if('module' %in% names(dt_key)){

type_subpop <- dt_key[variable == outcome_variable, module]
type_subpop <- dt_key$module[dt_key$variable == outcome_variable]
colname_subpop <- paste('svy_subpop', type_subpop, sep = '_')

if(colname_subpop %in% names(dt_data)){
Expand Down

0 comments on commit 7e9484e

Please sign in to comment.