Skip to content

Commit

Permalink
Merge 403a5a4 into bde4043
Browse files Browse the repository at this point in the history
  • Loading branch information
romainfrancois committed Feb 11, 2019
2 parents bde4043 + 403a5a4 commit ab68e51
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions R/ezsummary.r
Expand Up @@ -47,8 +47,8 @@ ezsummary <- function(tbl, ..., mode = c("ez", "details")){
'pass the value in as a data frame using `select` from dplyr.')
}

group_name <- attributes(tbl)$vars
var_name <- attributes(tbl)$names
group_name <- group_vars(tbl)
var_name <- tbl_vars(tbl)
if (!is.null(group_name)){
group_name <- as.character(group_name)
var_name <- var_name[!var_name %in% group_name]
Expand Down
4 changes: 2 additions & 2 deletions R/ezsummary_categorical.r
Expand Up @@ -92,8 +92,8 @@ ezsummary_categorical <- function(
flavor <- match.arg(flavor)

# Try to obtain grouping and variable information from the input tbl
group_name <- attributes(tbl)$vars
var_name <- attributes(tbl)$names
group_name <- group_vars(tbl)
var_name <- tbl_vars(tbl)
if (!is.null(group_name)){
group_name <- as.character(group_name)
var_name <- var_name[!var_name %in% group_name]
Expand Down
4 changes: 2 additions & 2 deletions R/ezsummary_quantitative.r
Expand Up @@ -88,8 +88,8 @@ ezsummary_quantitative <- function(
'pass the value in as a data frame using `select` from dplyr.')
}

group_name <- attributes(tbl)$vars
var_name <- attributes(tbl)$names
group_name <- group_vars(tbl)
var_name <- tbl_vars(tbl)
if (!is.null(group_name)){
group_name <- as.character(group_name)
var_name <- var_name[!var_name %in% group_name]
Expand Down

0 comments on commit ab68e51

Please sign in to comment.