extract.groups.RdExtract boundary or internal segments tagged by group id:s.
extract.groups(...)
# S3 method for class 'inla.mesh.segment'
extract.groups(
segm, groups, groups.new = groups, ...)An inla.mesh.segment object.
The segment groups id:s to extract.
Optional vector of group id remapping; groups[k] in the input
will be replaced by groups.new[k] in the output.
Additional arguments, passed on to other methods.