Cut a tree (result from hclust) into groups of data. Groups are in the order of the tree leafs

`cutree_order(tree, k = k, h = h)`

## Arguments

- tree
an hclust object

- k
the desired number of groups

- h
height where the tree is to be cut

## Notes

Taken from http://larmarange.github.io/JLutils/reference/cutree.order.html

## Examples

```
hc <- hclust(dist(USArrests))
memb <- cutree_order(hc, k = 10)
```