add.gnsp.clmn {primate} | R Documentation |
Add a genus species column
Description
Adds a genus_species column to the specified dataframe
Usage
add.gnsp.clmn(df,gn="Genus",sp="Species",rownames=FALSE,new.col=TRUE, gnsp.col = "gn_sp")
Arguments
df |
input data.frame |
gn |
column name for genus |
sp |
column name for species |
rownames |
use the new gn_sp column to assign data.frame rownames |
new.col |
TRUE if gn_sp column is to be retained, FALSE if it is to be removed |
gnsp.col |
the name of the new column to add, by default is "gn_sp" |
Value
modified data.frame (with genus species info concatenated and added)
Examples
primates.tab <- AWP.read.pkg.tab(tab.nm='dbo_tblGrovesMonkeys', id.clmn='MonkeyNumberGroves')
primates.tab <- add.gnsp.clmn(primates.tab,gn="Genus",sp="Species",rownames=FALSE,new.col=TRUE)
[Package primate version 0.2.0 Index]