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 optionsn
orFA
are included in theoptions
string, returns a list. Otherwise return a matrix. -
delaunayn()
: If thefull
option is supplied return theareas
andneighbours
of 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
delaunayn
respond toFa
andFn
options, outputtingareas
andneighbours
- 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.