R/l_pollen.R

Defines functions l_pollen

Documented in l_pollen

#' @title Table of the structure of mode of polinations
#' 
#'@description This function returns the table of the structure of mode of polinations in flora. 
#'The values may be taken from BiolFlor database (http://www2.ufz.de/biolflor/index.jsp)
#'@param co "eco" data.frame, containing flora and species' properties
#'@export
l_pollen=function(co){ chorie=sort(table(co$pollen))/length(co$pollen)
                       chor=as.data.frame(chorie)
                       (df=data.frame(chor=factor(rownames(chor),levels=rownames(chor)),
                                      sh=as.vector(chorie)))}
mkdyderski/MKDgeobot documentation built on May 23, 2019, 1:06 a.m.