pca_wholebird: Project bird species in PC space

Description Usage Arguments Value Author(s)

View source: R/pca_wholebird.R

Description

This function performs a Principal Component Analysis from many dependent variables representing the color of the birds measured from different patches on the plumage.

Usage

1
pca_wholebird(inpath, varNames = c("VS.v", "S.v", "M.v", "L.v"))

Arguments

inpath

A string. The path to the folder where to find the input data file. Note: the input data file is named "specs.csv".

varNames

A vector of strings. The names of the dependent variables in the input data frame.

Value

A list of two elements. The first is the output of prcomp performed on the dependent variables, where each bird has coordinates. The second element a table with metadata identifying each observation in the PCA.

Author(s)

Raphael Scherrer


rscherrer/bop documentation built on May 22, 2019, 3:54 p.m.