Learn R Programming

Momocs (version 1.4.1)

import_txt: Import coordinates from a .txt file

Description

A wrapper around read.table that can be used to import outline/landmark coordinates.

Usage

import_txt(txt.paths = .lf.auto(), ...)

Value

a list of matrix(ces) of (x; y) coordinates that can be passed to Out, Opn and Ldk.

Arguments

txt.paths

a vector of paths corresponding to the .txt files to import. If not provided (or NULL), switches to the automatic version, just as in import_jpg. See Details there.

...

arguments to be passed to read.table, eg. 'skip', 'dec', etc.

Details

Columns are not named in the .txt files. You can tune this using the ... argument. Define the read.table arguments that allow to import a single file, and then pass them to this function, ie if your .txt file has a header (eg ('x', 'y')), do not forget header=TRUE.

See Also

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