dup_replace {genomatic}R Documentation

Replaces duplicate samples with a single sample

Description

Uses the manually edited file created in ‘dup\_checker’ to remove duplicate samples in a data.frame.

Usage

dup_replace(all_samps, replace_samps)

Arguments

all_samps A data.frame of your entire dataset (including duplicates).
replace_samps A data.frame of samples created by ‘dup\_checker’ and manually edited so only a single instance of each sample appears.

Details

Uses the manually edited file created in ‘dup\_checker’ to remove duplicate samples in a data.frame. The samples names in ‘replace\_samps’ are used to remove all instances of these names from ‘all\_samps.’ ‘replace\_samps’ is then added to the dataset. Finally ‘order\_sample’ is used to order the samples alpha-numericallly.

Value

Returns a data.frame that is sorted and includes no duplicates.

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]