Skip to content

Commit

Permalink
move columns and sorting around
Browse files Browse the repository at this point in the history
  • Loading branch information
bvreede committed Dec 2, 2022
1 parent 6b3f7a4 commit 4944f63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/treatment_stats.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
treatment_stats <- function(ratio_df){

df <- ratio_df |>
dplyr::group_by(Group, Metric_type, Parameter) |>
dplyr::group_by(Metric_type, Parameter, Group) |>
dplyr::summarize(n_wells = dplyr::n(),
Ratio_avg = mean(Treatment_ratio, na.rm=T),
Ratio_stdv = stats::sd(Treatment_ratio),
Expand Down

0 comments on commit 4944f63

Please sign in to comment.