Skip to content

selecting metrics from "stdmetrics" #674

Answered by Jean-Romain
taeyoonlee87 asked this question in Q&A
Discussion options

You must be logged in to vote

You can copy the source code.

https://github.com/r-lidar/lidR/blob/master/R/metrics_stdmetrics.R#L123

Or ou can simply compute all metrics and select the ones of interest.

myMetrics = function(Z)
{
  ans = stdmetrics(Z)
  ans = ans[c("zmean", "zsd", "...")]
  return(ans)
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@taeyoonlee87
Comment options

Answer selected by taeyoonlee87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants