Closed candelas762 closed 2 years ago
I confirm the bug for cloud_metrics
. All the functions are built on the same code base so by inheritance they should all behave the same. The example can be made minimal with a constant metrics. We surprisingly get NAs as well meaning that there is something very wrong somewhere.
m = cloud_metrics(las, .(m = 1), by_echo = echo)
unlist(m)
#> m m.first m.intermediate m.lastofmany m.single m.multiple
#> 1 1 1 NA 1 1
This should now be fixed
How can I get the update? I have tried to update lidR
and also reinstall it but still having the error.
You must install the version from github
Thanks. Now I confirm it is working also for me 👍
When using
by_echo
in any of the_metrics()
functions the metrics calculated for thelastofmany
echoes areNA
.Here is an example using some functions: