pop_get {genomatic}R Documentation

Get populations from sample names

Description

Extracts the population name from a sample's name

Usage

pop_get(data)

Arguments

data A data.frame of sample names where the sample names are in the first column. All subsequent columns are ignored.

Details

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.

Value

A data.frame consisting of one column which contains the population names.

Author(s)

Brian J. Knaus bknaus@fs.fed.us http://brianknaus.com

References

Knaus, B.J. In prep. Genomatic: an R package for DNA fragment analysis project management.


[Package genomatic version 0.0-7 Index]