Skip to contents

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

Usage

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

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.

Value

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

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.

Note

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

Silent message and progress bars (if any) with options("verbose"=FALSE).

See also