import_tps: Import a tps file

View source: R/babel-import.R

import_tpsR Documentation

Import a tps file

Description

And returns a list of coordinates, curves, scale

Usage

import_tps(tps.path, curves = TRUE)

tps2coo(tps, curves = TRUE)

Arguments

tps.path

lines, typically from readLines, describing a single shape in tps-like format. You will need to manually build your Coo object from it: eg Out(coo=your_list$coo).

curves

logical whether to read curves, if any

tps

lines for a single tps file tps2coo is used in import_tps and 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.

Value

a list with components: coo a matrix of coordinates; cur a list of matrices; scale the scale as a numeric.

Note

Note this function will be deprecated from Momocs when Momacs and Momit will be fully operationnal.

See Also

Other import functions: import_Conte(), import_StereoMorph_curve1(), import_jpg1(), import_jpg(), import_txt(), pix2chc()

Other import functions: import_Conte(), import_StereoMorph_curve1(), import_jpg1(), import_jpg(), import_txt(), pix2chc()


MomX/Momocs documentation built on Nov. 18, 2023, 10:53 p.m.