iedma: Prepares the matrix of euclidean distances.

Description Usage Arguments Value Examples

Description

This function assists in the process of importing a file with original landmarks coordinates for each studied individuals and transforming these data into the lower off-diagonal matrix of euclidean distance between all ladmarks coordinates for each individual placed in a single row. It also allows to import qualitative information for each individual resulting in factors in the new data frame.

Usage

1
iedma(x, p, k = 0, d = 2)

Arguments

x

A data frame containing the initial data of landmarks coordinates.

p

Number of landmarks.

k

Number of factors with qualitative information.

d

Number of dimensions of the lanmdmarks coordinates.

Value

A data frame with the lower off-diagonal matrix of euclidean distance between all ladmarks coordinates for each individual placed in a single row. If k factors with qualitative information are also imported, factors are place in the k first columns of the new data frame.

Examples

1
2
new_file_A <- iedma(original_file_A, p = 10)
new_file_B <- iedma(original_file_B, p = 10, k = 3)

jbuxeda/cedma documentation built on July 18, 2019, 10:39 a.m.