View source: R/S03_Utilities.R
pull_id | R Documentation |
Function to extract the unique values for
subject identifiers in a data frame,
assuming a common variable name
(e.g., IDS.CHR.Subject
or ID
).
pull_id(dtf, subject = TRUE, id = NULL)
dtf |
A data frame. |
subject |
Logical; if |
id |
A user-defined variable name if the column with subject identifiers is not part of the commonly-used labels. |
A vector of values.
dtf <- data.frame( ID = rep( 1:3, each = 3 ), X = rnorm(9) )
pull_id( dtf )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.