sfc_expand_by_rules,sfc_rules,sfc_nxn-method | R Documentation |
Expand a sequence
## S4 method for signature 'sfc_rules,sfc_nxn'
sfc_expand_by_rules(p, seq, code = 1L, flip = FALSE, by = "Cpp")
## S4 method for signature 'sfc_rules,factor'
sfc_expand_by_rules(p, seq, code = 1L, flip = FALSE, by = "Cpp")
## S4 method for signature 'sfc_rules,character'
sfc_expand_by_rules(p, seq, code = 1L, flip = FALSE, by = "Cpp")
p |
An |
seq |
An |
code |
The expansion code. |
flip |
For the Peano curve and the Meander curves, each unit can be flipped without affecting other parts in the curve. This argument
controls whether to flip the unit. Since currently it only works on the Peano curve and the Meander curve, |
by |
Which implementation? Only for the testing purpose. |
If seq
is an sfc_nxn
object, the function also returns an "expanded" sfc_nxn
object. Or else it returns an sfc_sequence
object.
sfc_expand_by_rules(SFC_RULES_2x2, sfc_2x2("I"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.