pca_perpatch: Project bird species in patch PC space

Description Usage Arguments Value Author(s)

View source: R/pca_perpatch.R

Description

This function performs a Principal Component Analysis from quantum catches measured on different patches on the plumage. Each bird is represented by several patches, so several points.

Usage

1
pca_perpatch(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.