Learn R Programming

swaRmverse (version 0.1.1)

do_pca: Perform PCA

Description

This function runs a PCA to place events on collective motion into less-dimentional space.

Usage

do_pca(df)

Value

a list with the swarm space (a dataframe with PC1, PC2, PC3 coordinates per event) and the complete pca object.

Arguments

df

A dataframe with the metrics of collective motion per event.

Author

Marina Papadopoulou m.papadopoulou.rug@gmail.com