extract_sb_values: extract_sb_values Extract values from sample based PCA

View source: R/extract_values.R

extract_sb_valuesR Documentation

extract_sb_values Extract values from sample based PCA

Description

extract_sb_values Extract values from sample based PCA

Usage

extract_sb_values(clustered_data, ids, meta, grp, cluster = NULL)

Arguments

clustered_data

Object containing clustered data (expects output from 'prcomp')

ids

Character vector of ids for each row in 'clustered_data$x', corresponding to labels in 'grps'

meta

Data frame containing translation from id to group

grp

Character value identifying the column of 'meta' to use for group identifier

cluster

Data frame containing sample ID and the assigned kmeans cluster, as returned by 'kmeaner()'

Value

a data frame with values for SampleID, Group, PC1, and PC2


jcooperdevlin/JoesFlow documentation built on April 7, 2023, 12:42 p.m.