stripe | R Documentation |
This is a convenience function to use in row or column specifications.
In this context,
stripe(n, from)
will return from, from + n, ...,
up to the number of rows
or columns of the huxtable. evens
and odds
return even and odd
numbers, i.e. they are equivalent to stripe(2, 2)
and stripe(2, 1)
respectively.
everywhere
returns all rows or columns, equivalently to stripe(1)
.
stripe(n = 1, from = n)
everywhere(ht, dimension)
evens(ht, dimension)
odds(ht, dimension)
n |
A number (at least 1) |
from |
A number (at least 1) |
ht |
An object with a |
dimension |
Number of the dimension to use. |
Technically, stripe
returns a 2-argument function which can be called like
f(ht, dimension)
. See rowspecs for details.
Until huxtable 5.0.0, stripe
was called every
. It was renamed to
avoid a clash with purrr::every
.
ht <- huxtable(a = 1:10, b = 1:10)
set_background_color(ht,
evens, everywhere,
"grey95")
set_background_color(ht,
stripe(3), everywhere,
"grey95")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.