powered by
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')
a dataframe
columns
type of aggregation to be used
the column name by which the data.frame should be re-grouped
returned value
# NOT RUN { 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') # }
Run the code above in your browser using DataLab