coo_slide.Rd
Slides the coordinates so that the id-th coordinate, or a particular landmark, become the first one.
coo_slide( x, id, ldk, from_col = coo, ldk_col = ldk, to_col = { { from_col } }, ... )
x | |
---|---|
id |
|
ldk |
|
from_col, ldk_col | colnames from where to get the coo_list |
to_col | colname where to set the result (default to |
... | useless here |
a coo_single, coo_list or mom_tbl
For mom_tbl objects, three different flavours exist:
no ldk passed and a single id is passed: all id-th points within the shapes will become the first points.
no ldk passed and a vector of ids of nrow(x)
: for every shape,
the id-th point will be used as the id-th point.
a single ldk is passed: the ldk-th ldk will be used to slide every shape. If an id is (also) passed, it is ignored with a message. See examples.
ldk
handling is only supported on mom_tbl
objects.
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_split()
,
coo_template()
,
coo_trans()
,
coo_trim()
,
coo_up()
#>