powered by
This function creates an ecopop object from an ecogen object
ecogen2ecopop(from, hier, factor_to_counts = TRUE, aggregator = function(x) mean(x, na.rm = TRUE))
Object of class "ecogen"
Name of the level of the slot S with hierarchies
Convert factors into counts for each level?
Function used to aggregate data
# NOT RUN { # } # NOT RUN { data(eco.test) ecogen2ecopop(eco, hier = "pop") # } # NOT RUN { # }
Run the code above in your browser using DataLab