project_individuals: Project individuals into PC space

Description Usage Arguments Value Author(s)

View source: R/project_individuals.R

Description

This projects individual specimens into the PC space defined by species-averages.

Usage

1
2
project_individuals(inpath, pca, varNames = c("VS.v", "S.v", "M.v",
  "L.v"), wholeBird = T)

Arguments

inpath

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

pca

A prcomp object.

varNames

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

wholeBird

Whether the current analysis is per species (T) or per patch (F). If TRUE, the individual data are rearranged by patch prior to PCA, otherwise not.

Value

A data frame of principal component coordinates and metadata.

Author(s)

Raphael Scherrer


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