Displaying 1 result from an estimated 1 matches for "h_byfunc".
Did you mean:
_myfunc
2018 May 30
2
Filtering using multiple rows in dplyr
...4.17094 9.717128
6 HALAF032 A L A F 2 10 -20.42384 67.12998 -35.77357 15.349728
?subject? and ?freq? together make a set of data and I am interested in how the last four columns vary as a function of L2. So I grouped by ?subject? and ?freq? and can look at basic summaries.
h_byFunc <- h %>% group_by(subject, freq)
> h_byFunc %>% summarize(l = mean(Ldp), s = sd(Ldp) )
# A tibble: 1,175 x 4
# Groups: subject [?]
subject freq l s
<fct> <int> <dbl> <dbl>
1 HALAF032 2 -13.8 8.39
2 HALAF032 4 -15.8 11.0...