Description Usage Arguments Details Value Note See Also Examples
View source: R/coo_modifyers.R
Take a shape with n
coordinates. For each id
or ldk
passed,
the shape will be splitted on the corresponding coordinates
and (length(id/ldk)+1
) fragments returned.
1 2 3 4 5 6 7 8 9 10 |
x |
coo_single, coo_list or mom_tbl |
id |
|
ldk |
|
share |
|
from_col |
colnames from where to get the coo_list |
ldk_col |
colnames from where to get the coo_list |
to_col |
colname where to set the result (default to |
... |
useless here |
If share=TRUE
, then each slicing coordinates will be shared between consecutive fragments,
that is the last coordinates of the n-th
fragment will also be
the first of the n+1-th
fragment. That is usually what you want, and thus default to TRUE
.
ldk
handling is only supported on mom_tbl
objects.
a coo_single, coo_list or mom_tbl
ldk
happens to be present for coo_single
and coo_list
methods (unlike coo_slide
for instance),
only to please R CMD CHECK S3 consistency and
maintain a sensible order for arguments, with share
after coo
and ldk
.
For these classes, it is ignored with a message.
Have a look to coo_slidegap (todo link when ready) if you have problems with gaps after slicing around landmarks and/or starting points.
Other coo_modifyers:
coo_align()
,
coo_baseline()
,
coo_center()
,
coo_reflect
,
coo_rev()
,
coo_rotatecenter()
,
coo_rotate()
,
coo_sample_rr()
,
coo_sample()
,
coo_scale()
,
coo_shear()
,
coo_slide()
,
coo_template()
,
coo_trans()
,
coo_trim()
,
coo_up()
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.