pop_get {genomatic} | R Documentation |
Extracts the population name from a sample's name
pop_get(data)
data |
A data.frame of sample names where the sample names are in the first column. All subsequent columns are ignored. |
This function takes a data.frame of sample names which follows the format specified in the function ‘filename2sample’. For example, the sample name ‘PUTR\_068\_01’ is from the population ‘PUTR\_068.’ A data.frame consisting of one column which contains the population names is returned.
A data.frame consisting of one column which contains the population names.
Brian J. Knaus bknaus@fs.fed.us http://brianknaus.com
Knaus, B.J. In prep. Genomatic: an R package for DNA fragment analysis project management.