View source: R/cassavabasePipeline.R
| renameAndSelectCols | R Documentation |
Rename columns and remove everything unecessary
renameAndSelectCols(traitabbrevs, indata, customColsToKeep = NULL)
traitabbrevs |
data.frame with 2 cols (TraitAbbrev and TraitName). TraitName should match exactly to cassava ontology names |
indata |
data.frame read from cassavabase download |
customColsToKeep |
char. vec. of any custom cols you added and want to keep |
NOTICE: This function is part of a family of functions ("cassavabase_pheno_pipeline") developed as part of the NextGen Cassava Breeding Project genomic selection pipeline.
For some examples of their useage:
Other cassavabase_pheno_pipeline:
calcPropMissing(),
curateTrialOneTrait(),
curateTrialsByTrait(),
detectExptDesigns(),
fitMultiTrialModel(),
makeTrialTypeVar(),
nestByTrials(),
nestDesignsDetectedByTraits(),
nestForMultiTrialAnalysis(),
nestTrialsByTrait(),
readDBdata()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.