Closed robertogilsaura closed 2 years ago
Hi, @robertogilsaura
hide
is for "hiding" items from which category consists. So it is applicable only for "subtotal" and absolutely useless for "nets". "nets" hide subitems by default.
In your case it is easier just remove row:
data %>%
tab_cols('|'=unvr(reTEST)) %>%
tab_cells('|'=unvr(value)) %>%
tab_net_cells("Top Box (seguro compraría)" = 5,
"Top 2 Box (seguro y probable compraría)"= 4:5,
"Bottom 2 Box (seguro y probable no compraría)"=1:2,
"Rest"=3) %>%
tab_stat_cpct(total_row_position = 'none') %>%
tab_cells('|'=unvr(value)) %>%
tab_stat_mean() %>%
tab_pivot() %>%
rows(!grepl("Rest", row_labels)) %>%
as.etable()
Thanks a lot for your answer, @gdemin.
Hi @gdemin
I'm processing a product test. In this table, I need to hide (not display but compute in %) a category using
net
My code...
I would need that category "Rest" don't display in table. I think that
hide()
andunhide()
don't build the crosstab like I expect, without category Rest (3).Is there anyway for this?
Thanks in advance, Gregory.