ntsrow2Coo: Imports .nts to Coo objects

Description Usage Arguments Note See Also Examples

View source: R/babel-import.R

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

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

Arguments

nts.path

the path to the .nts file

sep

the separator between data

Note

I'm not very familiar to other morphometric formats. So if you have troubles importing your datasets, contact me, I can help. Or if you fix something, please let met know!

See Also

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

Examples

1
2
3
4
5
6
# 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)

Momocs documentation built on May 30, 2017, 5:23 a.m.

Search within the Momocs package
Search all R packages, documentation and source code