powered by
Splits data sets of compositions in groups given by factors, and gives the same class as the data to the result.
# S3 method for acomp split(x,f,drop=FALSE,…) # S3 method for rcomp split(x,f,drop=FALSE,…) # S3 method for aplus split(x,f,drop=FALSE,…) # S3 method for rplus split(x,f,drop=FALSE,…) # S3 method for rmult split(x,f,drop=FALSE,…) # S3 method for ccomp split(x,f,drop=FALSE,…)
a dataset or a single vector of some type
a factor that defines the grouping or a list of factors
drop=FALSE also gives (empty) datsets for empty categories
Further arguments passed to split.default. Currently (and probably) without any use.
a list of objects of the same type as x.
x
split
# NOT RUN { data(SimulatedAmounts) split(acomp(sa.groups),sa.groups.area) lapply( split(acomp(sa.groups),sa.groups.area), mean) # }
Run the code above in your browser using DataLab