summarize | R Documentation |
ir
object to fewer rowsSummarize each group in a ir
object to fewer rows
summarize.ir(.data, ..., .groups = NULL) summarise.ir(.data, ..., .groups = NULL)
.data
with summarized columns. If the spectra
column is dropped
or invalidated (see ir_new_ir()
), the ir
class is dropped, else the
object is of class ir
.
dplyr::summarize()
Other tidyverse:
arrange.ir()
,
distinct.ir()
,
extract.ir()
,
filter-joins
,
filter.ir()
,
group_by
,
mutate-joins
,
mutate
,
nest
,
pivot_longer.ir()
,
pivot_wider.ir()
,
rename
,
rowwise.ir()
,
select.ir()
,
separate.ir()
,
separate_rows.ir()
,
slice
,
unite.ir()
## summarize # select in each sample_type groups the first spectrum ir_sample_data %>% dplyr::group_by(sample_type) %>% dplyr::summarize(spectra = spectra[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.