Skip to content

Commit

Permalink
Made the call to pivot_wider explicitly from tidyr
Browse files Browse the repository at this point in the history
  • Loading branch information
emeyers committed Aug 22, 2020
1 parent bd39854 commit af196fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ds_basic.R
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ ds_basic <- function(binned_data,
num_trials_for_each_label_for_each_site <- binned_data %>%
dplyr::group_by(.data$siteID, labels) %>%
dplyr::summarize(n = n()) %>%
pivot_wider(names_from = .data$labels, values_from = .data$n)
tidyr::pivot_wider(names_from = .data$labels, values_from = .data$n)

# for some reason select(-.data$siteID) isn't working
num_trials_for_each_label_for_each_site$siteID <- NULL
Expand Down

0 comments on commit af196fa

Please sign in to comment.