Summarize the mean percent noise in each gruop of jittered range of data
Source:R/summarize_noise.R
summarize_noise.Rd
Summarize the mean percent noise in each gruop of jittered range of data
Arguments
- data
A dataset with the columns min, min_jitter, max, max_jitter.
- .by
-
<
tidy-select
> Optionally, a selection of columns to group by for just this operation, functioning as an alternative togroup_by()
. For details and examples, see ?dplyr_by.
Value
See dplyr::summarize()
.
Examples
# styler: off
data <- tibble::tribble(
~min_jitter, ~min, ~max, ~max_jitter, ~group,
0.8, 1.0, 2.1, 2.2, 1,
0.9, 1.1, 2.2, 3.0, 1,
0.1, 2.1, 3.1, 5.8, 2,
0.2, 2.2, 3.2, 5.9, 2,
)
# styler: on
summarize_noise(data)
#> # A tibble: 1 × 2
#> min_noise max_noise
#> <dbl> <dbl>
#> 1 56.1 53.1
summarize_noise(data, .by = "group")
#> # A tibble: 2 × 3
#> group min_noise max_noise
#> <dbl> <dbl> <dbl>
#> 1 1 19.1 20.6
#> 2 2 93.1 85.7