as.compositional function

create a compositional object