dup_replace {genomatic} | R Documentation |
Uses the manually edited file created in ‘dup\_checker’ to remove duplicate samples in a data.frame.
dup_replace(all_samps, replace_samps)
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. |
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.
Returns a data.frame that is sorted and includes no duplicates.
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.