geometry
geometry copied to clipboard
Make behaviour of convhulln() and delaunayn() consistent
In the current version of the package, the behaviour of convhulln() and delaunayn() differ:
-
convhulln(): If the Qhull optionsnorFAare included in theoptionsstring, returns a list. Otherwise return a matrix. -
delaunayn(): If thefulloption is supplied return theareasandneighboursof each simplex.
It would be good to normalise the behaviour by removing the full option from delaunayn and only outputting a list when options such as Fa and Fn are specified. The only call to delaunayn with the full option is delaunayn(as.matrix(data), options="Fa Fn", full=T) in the restlos package.
Thus the proposal is:
- Make
delaunaynrespond toFaandFnoptions, outputtingareasandneighbours - Deprecate
full, producing a WARNING
In 0.4.0 there is no message or warning; messages and then warnings will be added in future versions of geometry.