
Last chance! 50% off unlimited learning
Sale ends in
Coo
objects after a slicing, either manual or using slice or chop. Note that on Coo object,
it combines row-wise (ie, merges shapes as a c
would do) ; but on Coe it combines column-wise
(merges coefficients). In the latter case, Coe must have the same number of shapes (not
necessarily the same number of coefficients).
Also the $fac
of the first Coe is retrieved.
A separate version may come at some point.
combine(...)
arrange
,
at_least
, chop
,
dissolve
, filter
,
mutate
, rename
,
rm_uncomplete
, rw_rule
,
sample_frac
, sample_n
,
select
, slice
,
subset.Coo
, transmute
data(bot)
w <- filter(bot, type=="whisky")
b <- filter(bot, type=="beer")
combine(w, b)
# or, if you have many levels
bot_s <- chop(bot, type)
bot_s$whisky
# note that you can apply something (single function or a more
# complex pipe) then combine everyone, since combine also works on lists
# eg:
# bot_s2 <- lapply(bot_s, efourier, 10)
# bot_sf <- combine(bot_s2)
# pipe style
lapply(bot_s, efourier, 10) %>% combine()
Run the code above in your browser using DataLab