sfc_expand_by_rules,sfc_rules,sfc_nxn-method {sfcurve} | R Documentation |
Expand a sequence
Description
Expand a sequence
Usage
## 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")
Arguments
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. |
Value
If seq
is an sfc_nxn
object, the function also returns an "expanded" sfc_nxn
object. Or else it returns an sfc_sequence
object.
Examples
sfc_expand_by_rules(SFC_RULES_2x2, sfc_2x2("I"))