Learn R Programming

Momocs (version 1.1.6)

ntsrow2Coo: Imports .nts to Coo objects

Description

Useful to convert .nts files into Coo objects. For .nts provided as rows, use ntsrow2Coo; for .nts provided as columns of coordinates, try ntscol2Coo. It returns a list of matrices of coordinates that can be passed to Coo (Out, Opn or Ldk).

Usage

ntsrow2Coo(nts.path, sep = "\t")

Arguments

nts.path
the path to the .nts file
sep
the separator between data

See Also

Other babel functions: bind_db, chc2Out, chc2pix, import_StereoMorph_curve1, import_jpg, import_tps, nef2Coe, pix2chc, tie_jpg_txt, tps2coo

Examples

Run this code
# That's how wings dataset was created
# made a local copy from http://life.bio.sunysb.edu/morph/data/RohlfSlice1990Mosq.nts
# then :
# coo_list  <- ntscol2Coo('~/Desktop/mosquitowings.nts)
# fac       <- data.frame(fac=factor(substr(names(coo_list), 1, 2)))
# wings <- Ldk(coo_list, fac=fac)

Run the code above in your browser using DataLab