# Set file path
filepath <- system.file("extdata", package = "FishDiveR")
# Load pc_results
pc_results <- readRDS(file.path(filepath, "data/4_PCA/pc_results.rds"))
# Run pca_scores function
pc_scores <- pca_scores(
pc_results = pc_results,
plot_loadings = FALSE,
every_nth = 12,
output = TRUE,
output_folder = tempdir(),
verbose = TRUE
)
Run the code above in your browser using DataLab