Internal function used in import_tps that may be useful for data import. When provided
with lines (eg after readLines) from a tps-like description (with "LM", "CURVES", etc.) returns a list of
coordinates, curves, etc.
Usage
tps2coo(tps, curves = TRUE)
Arguments
tps
lines, typically from readLines, describing a single shape in tps-like format
curves
logical whether to read curves, if any
Value
a list with components:
coo a matrix of coordinates; cur a list of matrices; scale the scale as a numeric.
Details
if curves are present add them to $coo (with the proper combination
of do.call, rbind, then use def_slidings or define a slidings matrix (see Ldk).
## Not run: ------------------------------------# # let's imagine this command works fine# coo <- import_tps(...)# # then you can# Ldk(coo)## ---------------------------------------------