add.gnsp.clmn | R Documentation |
Adds a genus_species column to the specified dataframe
add.gnsp.clmn(df,gn="Genus",sp="Species",rownames=FALSE,new.col=TRUE, gnsp.col = "gn_sp")
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" |
modified data.frame (with genus species info concatenated and added)
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.