regroup.gnsp | R Documentation |
Regroup a given data.frame by a column designated as unique genus_species combination. This function is essentially a wrapper for caroline:::groupBy()
regroup.gnsp(df,clmns,agg='mean',by='gn_sp')
df |
a dataframe |
clmns |
columns |
agg |
type of aggregation to be used |
by |
the column name by which the data.frame should be re-grouped |
returned value
primates.tab <- AWP.read.pkg.tab(tab.nm='dbo_tblGrovesMonkeys', id.clmn='MonkeyNumberGroves') out <- regroup.gnsp(df=primates.tab,clmns=colnames(primates.tab), agg='paste')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.