Split a selected field from layout using a schema from another layout.

lay_split_field(lay, newlay, field)

laySplitField(lay, newlay, field)

Arguments

lay

a Layout object.

newlay

a Layout object used to split a field from lay.

field

id of a field from lay.

Examples

l1 <- lay_new(matrix(c(1:4), ncol = 2), widths = c(4, 1)) l2 <- lay_new(matrix(c(1:4), ncol = 2), widths = c(1, 1)) l3 <- lay_split_field(l1, l2, 2) lay_show(l3)